Where and how to place codes at top header and very bottom of php page?
Autor: Ashish Purmanund
Visitado 1341,
Followers 1,
Compartido 0
Hello, with regards to the attachment, how to do that?
Thank you.
Happy New Year 2021
Rgds
Ashish
Publicado en
Hello Ashish,
Step 1 goes here (my example shows 'Page 38' but you will obviously select the appropriate page in your own sitemap):
Step 2 goes here (place an HTML Code Object on your page in Step 4):
And Step 3 goes here:
Kind regards and Happy New Year to you too!
Paul
Search the WebSite X5 Help Center
Hello.Perhaps this video will be useful to youhttps://magazin.aleksius.com/en/blog/20-css-and-js-adding-to-website-x5
Autor
Dear Paul M and Alesej H
Thank you very much indeed for taking your time to help. Paul M, a person leans more and easily with pictures than writing. You nailed it and very helpful with the screenshots. Aleksej, we have been in contact. Thank you for your patience.
Wish you a blasting New Year. Keep safe and well.
Regards
Ashish
Autor
Aleksej
The link you've provided Part 5, Correct me if I am wrong, I believe this is the codes that will make the Wow slider and Google analytics codes appear all all the pages of the website. Am I correct?
Regards
Ashish
Autor
Dear Paul M and Aleksej
As per attachment and explanations above, the code is not correctly placed as it should have been after the closing Html.
Perhaps,this is what needs to be added in the Expert part which may be missing?
Regards
Ashish
.
The only way to add that code after the closing HTML tag would be to export the site to the server, and then manually modify the source code on the server. However, in my humble opinion I do not think that is why there may be an issue with the script. Were you explicitly directed by the script author to move the code outside the closing HTML tag?
Is it possible there is a typo (spelling mistake) in the script directory? Your screenshot shows a path '/home/ezysearc/public_html...' - should that perhaps be ezysearch?
If you are using the optional Step 2a shown in your script then place that code {YP_META} inside the HEAD of the page using the Expert tab in Page Properties.
Autor
Hello Paul M
No, there is no error in the script.
It is done by phpjabbers,and most of the scripts are like that.
https://www.phpjabbers.com/yellow-pages-script/
Click on demo and see installation.
Take another script: https://www.phpjabbers.com/stiva-blog-script/
Click Demo > Admin> (enter the Back end) and see Install.
When I was doing my websites in Xara Designer, I add the topmost and most below after closing html through my FTP software (Cute FTP Pro)
Rest assured how much,I really appreciate your input.
Thank you.
Autor
The current page was done with Xara Designer Pro (www.e-zysearch.com)
I am switching henceforth to Incomedia Website X5 Pro as I am starting to understand much better the software and was a bit intimidated to use it before as it was like geek to me, since I was used to work on XDP (Xara Designer Pro) for almost 12 years.
What's worng with the present website?
In Xara, when you place the codes in the Desktop and Mobile variant and export, it creates codes conflict. Hence, to counter that and to make it work, I place in one of the variants an Iframe of the preview page. It works BUT, technically, it is not good because, it does not help with SEO. This is the only issue with XDP.
BUT, I am agreeably surprised to discover that Website X5 has more features. The only issue is with the responsive side, where often, it is not the same with pictures placement and the hide/show object does not always work and produce what is being expected. I don't see why there siuld be variant below 480px because, there is no mobile or smartphone nowadays which does that !
Had I tried X5 Pro, I would not have to invest in WebAcapella FX and Grid and it costs a hell lots of money.
Thanks for the extra information, Ashish... very helpful.
I've used quite a few PHP Jabbers scripts in the past and the format of your own script is one I recognise. But I have never needed to place code outside of the closing HTML tag in order for the script to run properly. However, you could always try exporting the site to the server and then manually editing the source code, like I mentioned previously.
Can we clarify a few other things? Please excuse me if these seem basic, but it's important to rule them out.
You have of course set the file extension of the page in question to .php?
PHP is installed and correctly configured on your web server in accordance with the requirements from PHP Jabbers?
You are testing the finished page in a browser, and not by using the Preview function of WebSite X5? (PHP code won't run in the WebSite X5 Preview)
If you browse to /home/ezysearc/public_html/yellowpages/app/views/pjLayouts/pjActionListings.php is the pjActionListings file physically present on the server? Is your script directory really ezysearc without an 'h'?
What actually happens when you try to load your website page and run the script? What do you see? Do you get any error messages? Have you checked the error logs on the server for further details?
Autor
Dear Paul M.
Great. Thank you for taking the care even during the "heat" of Christmas and New Year festivities.
As on the actual/ current site: https://www.e-zysearch.com, the website is doing good but as already explained above, technically, it is not the properway as there should not be an Iframe and the reason, there has been no hits (google analytics)
Regarding the missing "h" in search, yes, this is the Cpanel which the hosting provider has given (see screenshot attached).
so, the yellow pages script is running fine. Only, configuring same and inserting the codes within an existing template or webpage and especially in Xara Designer Pro or other version causes a codes conflict issues. And I hope, it won't with Website X5 Pro !
I have some doubts regarding the script which is or has been inserted in the Index page and will need to change from html >> to php and whether that part of the codes placement will have to define the height or not? (see 2nd screenshot).
Should the object html codes height remains unchecked or it should be defined, that is ticked/checked to 1600px?
You cannot see it working until, it is uploaded.
There are some other blank objects as well as per the screenshot as what I have seen on tips here on help, which mentiones never to leave a row blank !
Thanks and regards
Ashish
Autor
01st screenshot (as cannot upload more than one attachment)
You can do that here:
Yes, the page on which your script is embedded must be changed to a .php file extension in order to function.
It depends on your preference, and also a little on trial and error and experimentation. If you force the height by ticking the box, then the script's output will be displayed in a sort of 'container' - otherwise the page remains 'elastic' - depending on the output of your script you may prefer one or the other. Also, the script itself might set display properties which make it sensible to use one option over the other. Test in all viewports and see what works best for your site's visitors.
Good luck!