1 Attachment(s)
HTML coding appearing on page
Am having HTML coding appear on the bottom right hand corner of my store page instead of social media buttons.
giftideasonline.co.uk
Attachment 19371
Have tried to find a solution to this here previously but have never been able to find the name of the file that needs changed.
Can someone please explain in simple steps how to correct this.
Very many thanks in advance.
Re: HTML coding appearing on page
Those are 'flexible footer' configuration settings that have been run through the admin sanitizer, changing all < to < and > to >.
You'll need to use your site's phpMyAdmin to change those back, i.e. changing all < instances back to < and > instances to >.
Re: HTML coding appearing on page
Thank you for the ultra fast reply.
I have come across this problem many times before in other files and correctly easily but in this case I cannot find the actual file I need to open and correct. I have used Developer Tools to try and search for some of those HTML lines but it does not through up them listed in any files. If I knew the file or files I have to edit have no problem fixing them.
Re: HTML coding appearing on page
Quote:
Originally Posted by
irishshoppercom
Thank you for the ultra fast reply.
I have come across this problem many times before in other files and correctly easily but in this case I cannot find the actual file I need to open and correct. I have used Developer Tools to try and search for some of those HTML lines but it does not through up them listed in any files. If I knew the file or files I have to edit have no problem fixing them.
Look in your site's /includes/modules/westminster_new/flexible_footer_menu.php. On/around line 31, you'll see
Code:
$page_query_list_footer[$rows]['text'] = $page_query->fields['col_html_text'];
Change that line, adding the highlighted 'bits':
Code:
$page_query_list_footer[$rows]['text'] = str_replace(array('<', '>'), array('<', '>'), $page_query->fields['col_html_text']);
Don't forget that trailing )!
Re: HTML coding appearing on page
Fantastic. THANK YOU. I made the change and it got rid of the HMTM code OK but rather than have blue boxes with social media icons there are now just plain blue boxes which are clickable as they should be.
What I am after is shown with our other store www.irishshopper.com.
Re: HTML coding appearing on page
You'll need to change
Code:
$page_query_list_footer[$rows]['text'] = str_replace(array('<', '>'), array('<', '>'), $page_query->fields['col_html_text']);
to add " changing to "
Code:
$page_query_list_footer[$rows]['text'] = str_replace(array('<', '>', '"'), array('<', '>', '"'), $page_query->fields['col_html_text']);
NOTE that the ,'"' is a comma, a single quote, a double quote, and a single quote.
Re: HTML coding appearing on page
Quote:
Originally Posted by
irishshoppercom
Fantastic. THANK YOU. I made the change and it got rid of the HMTM code OK but rather than have blue boxes with social media icons there are now just plain blue boxes which are clickable as they should be.
What I am after is shown with our other store
www.irishshopper.com.
There are possibly either some negative effects or uncorrected items by the change that was made in the files. As lat9 indicated and to again state, the "real" issue is the data that has been stored in the database which is then to be displayed by the above code.
Correct the data and then the file change(s) are not needed... there may be a separate code change needed to prevent it from happening again though...
Re: HTML coding appearing on page
IIRC, this is still a bug in Flexible Footer.
Re: HTML coding appearing on page
Quote:
Originally Posted by
swguy
IIRC, this is still a bug in Flexible Footer.
A bug, I suppose, in the sense that the Flexible Footer Menu doesn't provide an admin-sanitizer override so that those 'htmlspecialchars' don't continually get converted to their HTML entities.
Re: HTML coding appearing on page
Have now got the Social Media icons appearing on the blur squares OK so many thanks for that.
One last problem is the links on all these are the default links but I just cannot find the file to change them.
They are working properly from the small Social Media links at the top of each page OK.