Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1351181

    Hi
    i have a page, called “classes”.
    I pull posts from the categorie “classes” by a masonry element.

    What does a search engine “see” on this page?
    One H1 (in the title bar)
    Some h3 (the title of every single post)

    Example:

    <div class="av-inner-masonry-content-pos-content"><div class="avia-arrow"></div><h3 class="av-masonry-entry-title entry-title " itemprop="headline">Name of the course</h3><div class="av-masonry-entry-content entry-content" itemprop="text">
    Description of the course</div></div>

    This is for sure a “No Go” for SEO cause it misses any H2.
    (If you want to lern more about the theoretical background of headers you find some on the Website of YOAST)

    Question:
    How can i make the “av-masonry-entry-title” become a H2 instead of an H3?
    (But only for certain posts – not for all)

    Kind regards
    Elvira

    #1351454

    Hey InSilentio,

    Thank you for the inquiry.

    Have you tried using a special heading or a text block to add an h2 element in the page? If you want to change the heading of the masonry title instead, please add this filter in the functions.php file.

    function avf_customize_heading_settings_mod( array $args, $context, array $extra_args = array()){
      if( $context == 'avia_masonry' ){
        $args['heading'] = 'h2';              
      }
      return $args;
    }
    add_filter( 'avf_customize_heading_settings', 'avf_customize_heading_settings_mod', 10, 3 );
    

    You can also use the is_page conditional function if you need to only apply this modification for specific pages.

    Best regards,
    Ismael

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