Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1318935

    Dear Enfold.

    We are using a table of contents plugin along with the content element magazine on our page, but, the magazine headings are in h3, so it appears in the table of contents if I don’t exclude the h3 tag from the table of contents. However, I would like to also include the h3 tag without having the included blog posts titles from the magazine within the table of contents.

    Please is there a way to change the magazine heading into h4, but keep the styling (including the size of fonts) the same?

    #1319248

    Hey agiledynamicss,

    Thank you for the inquiry.

    You can use the following filter in the functions.php file to change the heading to h4.

    function avf_avf_customize_heading_settings_mod( array $args, $context, array $extra_args = array()) {
      if( $context == 'avia_magazine' ){
        $args['heading'] = 'h4';              
      }
      return $args;
    }
    add_filter( 'avf_customize_heading_settings', 'avf_avf_customize_heading_settings_mod', 10, 3 );
    

    You may need to insert additional css code or apply the previous css from the h3 tag to keep the style of the heading.

    Best regards,
    Ismael

    #1320194

    Thank you very much!

    Will we have to do this every time we update the theme?

    #1320336

    Hi,

    Thanks for the update. If you are not running a child theme, then please install that first: https://kriesi.at/documentation/enfold/install-enfold-theme/#why-child-theme, then add the function which Ismael posted in the functions.php file in your child theme.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.