Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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/

    #1356128

    in 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.

    #1356215

    Hello 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.

    #1356256

    no 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, 1 month ago by Guenni007.
    #1356344

    Hello Guenni!
    Thank you for your help! I installed code-snipped and indeed.. it seems to work.

    #1356431

    Hi,
    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘magazine headings change to H4’ is closed to new replies.