-
AuthorPosts
-
May 15, 2015 at 1:51 pm #444910
hi on the full width easy slider the caption title by default for text is given a h2 tag
How can I change this so it is a H1 tag?
May 15, 2015 at 3:20 pm #444963Hi codecreative!
Please go to Enfold/config-templatebuilder/avia-shortcodes folder and open slideshow.php file and find
if(trim($title) != "") $title = "<h2 {$title_styling} class='avia-caption-title' $markup_name>".trim(apply_filters('avf_slideshow_title', $title))."</h2>";
and change h2 tags as needed
Best regards,
YigitMay 15, 2015 at 3:32 pm #444982Hi and what happens if I update the theme ?
Will this revert?
Can I do this via child theme functions file?
May 15, 2015 at 3:44 pm #444991Hey!
If you keep the changes on parent theme, it will be overwritten when you update the theme.
Yes, you can move the changes to your child theme. Please refer to this post – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/Best regards,
YigitJuly 23, 2016 at 1:49 am #664101Followed Yigit’s instructions and it didn’t work.
In fact slideshow.php doesn’t contain an<h2>
at all. It has an<h4>
instead. I suspect these are out of date instructions for an earlier version of the theme.However
slideshow_feature_image.php has an<h2>
which I changed to ‘<h1>’ in my child theme
BUT
the changes do not affect the slider. It stays as an h2.
There is no caching at fault here.This is bad for the site’s SEO and it’s definitely suffering as a result. A fix is needed.
July 26, 2016 at 4:00 am #665121Hi!
Edit the av-helper-slideshow.php file instead. Look for this code around line 422:
if(trim($title) != "") $title = "<h2 {$title_styling} class='avia-caption-title' $markup_name>".trim(apply_filters('avf_slideshow_title', $title))."</h2>";
Best regards,
IsmaelJuly 26, 2016 at 6:57 pm #665435That solved it. (Also had to change shortcodes.css)
You guys should make an option to select whether the slider content should be in h1 or h2 from within the wp-admin
July 26, 2016 at 8:16 pm #665450Hi!
Please do not hestitate to post that as a feature request for Kriesi!
Thanks a lot for your pointing it out.Please feel free to open a new ticket if needed.
Regards,
Basilis -
AuthorPosts
- The topic ‘enfold easy slider’ is closed to new replies.