
-
AuthorPosts
-
December 21, 2019 at 9:14 pm #1168516
I would like to change all blog post headlines on category pages as well the home page from h3 to h2. But just the tag, not the size there.
I’ve tried your workflow described in the documentation but I didn’t get it done.Could you give me any help to solve that?
Page is in maintenance mode, so the login details are in private content
Thanks
PatricDecember 24, 2019 at 8:07 pm #1168972Hey CeeAreDee,
Well, for the category you need to edit the archive.php file and for the front page you need to edit this file
/enfold/config-templatebuilder/avia-shortcodes/blog/blog.phpIf you need further assistance please let us know.
Best regards,
VictoriaFebruary 1, 2020 at 7:31 pm #1180537Could you give me a hint in which line I can find it? I copied both files in the child theme folder but cannot find any entry in these where to change the stuff as described.
Thanks
February 1, 2020 at 10:16 pm #1180557hm on every page i look for – f.e.: https://kriesi.at/themes/enfold-2017/category/uncategorized/
the headings are allready on h2.
So is there a link to your pages i can see the issue?Or do you mean the grid layout: https://kriesi.at/themes/enfold-2017/blog/blog-default/
February 2, 2020 at 9:18 am #1180648im looking for a solution with filter of enfold: avf_customize_heading_settings
maybe a mod can give us advice to use it on that element
___________________________but this will work fast too with maybe with more specifity if the selectors in that line:
replaceElementTag( …)
are more “picky”:function replace_tags_with_tags(){ ?> <script> (function($) { function replaceElementTag(targetSelector, newTagString) { $(targetSelector).each(function(){ var newElem = $(newTagString, {html: $(this).html()}); $.each(this.attributes, function() { newElem.attr(this.name, this.value); }); $(this).replaceWith(newElem); }); } replaceElementTag('h3.entry-title', '<h2></h2>'); }(jQuery)); </script> <?php } add_action('wp_footer', 'replace_tags_with_tags');
by the way – there are css settings for h2 ( f.e. uppercase etc. ) you have to adjust those settings after change
you can have on that snippet more than one replacement . just add new lines as:
replaceElementTag('h3.entry-title', '<h2></h2>');
under each other – semicolon separatedFebruary 5, 2020 at 6:21 pm #1181874The page is now onlin. And yes, I mean the grid layout.
You can see what I mean at https://ceearedee.com/wares/
February 7, 2020 at 9:10 pm #1182400Hi CeeAreDee,
Did you add the code suggested by Guenni007? The token has expired and we cannot check the website anymore.
Best regards,
VictoriaFebruary 8, 2020 at 11:29 am #1182560no he hasn’t tried it – but if he – it will be changed to h2!
i can test it on developer Console.February 8, 2020 at 7:58 pm #1182644Hi Guenni007,
Oh well … Thank you for your expert advice as always :)
Best regards,
VictoriaFebruary 8, 2020 at 8:56 pm #1182651thanks, I haven’t been able to test it yet. But I’ll try the next days.
February 9, 2020 at 2:46 pm #1182741Hi CeeAreDee,
Thanks for the update, we’ll leave this thread open for you.
Best regards,
RikardFebruary 9, 2020 at 2:47 pm #1182742Hi CeeAreDee,
Thanks for the update, we’ll leave this thread open for you.
Best regards,
RikardMarch 1, 2020 at 8:21 pm #1189252It’s a late reply. Thank you very much Guenni. Your solution works great.
The thread can be closed now.
March 1, 2020 at 11:41 pm #1189277Hi,
Glad to hear Guenni could help, we will close this now. Thank you for using Enfold.For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)Best regards,
Mike -
AuthorPosts
- The topic ‘Change slide-entry-title entry-title from h3 to h2’ is closed to new replies.