-
AuthorPosts
-
June 22, 2022 at 12:19 am #1356067
Hello Support!
I have tried to change the magazine headings from h3 to h4 without any success.
I read this tread: https://kriesi.at/support/topic/headline-size-in-magazine-style/June 22, 2022 at 10:45 am #1356128in the meantime there is a filter to do this. ( the former method via a child theme magazine.php is no longer necessary )
can you place this in your child-theme functions.php:function my_avf_customize_heading_settings( array $args, $context, array $extra_args = array() ){ if( $context == 'avia_magazine' ){ $args['heading'] = 'h4'; } return $args; } add_filter( 'avf_customize_heading_settings', 'my_avf_customize_heading_settings', 10, 3 );
by the way the alb element itself got the option to set the heading tag – under Advanced Tab : Heading Tag.
June 22, 2022 at 11:23 pm #1356215Hello Guenni!
i have installed the child-theme, but i can´t change to the child theme cause it changed to much existing contant. Wondering if there is a quick css for that.June 23, 2022 at 9:34 am #1356256no quick css – this is a snippet for functions.php.
Most layouters want to change the heading tag for SEO reasons; you can adjust the headings so e.g. the h3 to the h4 appearance via css of course, but that would be a bad solution from my point of view.You can insert that in your parent theme as well, either the way of your link in the magazine.php file – or you put that snippet into your parent theme functions.php. But on the parent functions.php there are good and bad places to insert such code.
I guess one of the good places is just before the end of it:
( click to enlarge the images )
Next But you always have to do the edit – everytime you update your theme – this is really not a practical solution
( with magazine.php the same)Maybe a plugin is a good solution for you: https://wordpress.org/plugins/code-snippets/
I did not test it – but it seems to be very popular with over 600.000 installations. Then those snippets comes to the plugin dialog
Edit : tested right now – and it works !
- This reply was modified 2 years, 4 months ago by Guenni007.
June 23, 2022 at 11:14 pm #1356344Hello Guenni!
Thank you for your help! I installed code-snipped and indeed.. it seems to work.June 24, 2022 at 8:03 pm #1356431Hi,
Glad Guenni007 could help, thank you Guenni007, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘magazine headings change to H4’ is closed to new replies.