- tchillidog April 25, 2016 at 12:24 am
Hi Juan–
I created a similar site to the one you helped me out with before, but for some reason it’s showing a bunch of broken HTML on the homepage. It looks like there were an update to the theme, which I installed, but it doesn’t seem to fix it. It’s under the Grid Iron site within the network.
Do you have any idea of what is causing this? Thank you.
Tiffany
P.S. I sent you new access to my WordPress site since I already deleted the previous one.
Juanfra Aldasoro April 25, 2016 at 2:00 pmHi Tiffany,
Thank you for writing.
I’ve received the access keys, unfortunately my user role is set to moderator and I cannot see any configuration panel. Would you please set me as admin so I can help you?
Best,
Juantchillidog April 25, 2016 at 5:35 pmHi Juan,
Sorry about that. I was pretty sure I set it as admin last night, but I just reset your privileges again to admin so see if that works.
Juanfra Aldasoro April 25, 2016 at 6:02 pmHi Tiffany,
Thank you for the follow up.
It seems that the permissions didn’t apply correctly. I tried loggin out and in again and I’m still unable to see the dashboard: https://cloudup.com/cmS95Zmk_W9
If you are using WordPress multisite, please take a look at the Network settings and apply the roles directly over there.
Best,
Juan.tchillidog April 25, 2016 at 6:21 pmHi sorry, I forgot to check off a box. You should be all set now.
Juanfra Aldasoro April 25, 2016 at 7:19 pmHi,
Thank you for the follow up. I was able to log in now.
It seems that you are using a plugin that is adding some HTML to the “title” attribute of the images, and it is breaking the HTML. Would you please try deactivating the plugins one by one and checking which one can be causing the problem? In my opinion, it might be related to the SEO plugin, because the code added is:
FAQ
Best,
Juan.tchillidog April 25, 2016 at 8:17 pmHi Juan,
I have that SEO plug-in activated on my other site under the same network and it’s not creating the same problem. I’m afraid if I start deactivating plug-ins by trial and error I’m going to lose a bunch of work.
Juanfra Aldasoro April 25, 2016 at 9:20 pmHi Tiffany,
Thank you for the follow up
I’m afraid that the plugin is hooking over the WordPress native function get_the_title(); and that is causing the problem. It is not a problem of the theme itself but the plugin that is altering the normal functioning of a WordPress function by adding HTML to it.
Do you know if you can configure that from their options?
Other option is if you use the function esc_html to escape the HTML printed by the SEO plugin within the title attribute of the link. I’ve created a file applying that fix to the original file.
To try that, all you need to do is grab this file: https://gist.github.com/juanfra/052ba155b020e1fe32631ea5fa7eee6f
And replace the original /flatbase/includes/functions.php with it.
Best,
Juan.tchillidog April 25, 2016 at 11:31 pmHi Juan,
Thanks for the help. It looks like the SEO plug-in Yoast doesn’t have the option to configure the settings to use the get_the_title() function. So I tried your other option, which seemed to have solve the problem!
My only question with this solution is will this be included in the next theme update or will I have to manually update the code again?
Tiffany
Juanfra Aldasoro April 25, 2016 at 11:42 pmHi Tiffany,
Thank you for the follow up. I’m happy your problem is now solved.
Given that SEO by Yoast is a largely used plugin it is quite likely that we will include this fix on the next release.
Best,
Juan.
This topic is marked as resolved
Only the topic author can re-open this thread.