Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1925275
<h1> page title
Closed

Comments

  • Martnbrgman started the conversation

    Hi,


    Where can I add a function so the h1 for my pages is always the page title?

    Is the correct function to add <h1>get_the_title</h1>?


    Thanks for a great theme!

  •  7,280
    Oliver replied

    Hi,

    pls. give me link to the page and add screenshot where you need to add it.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Martnbrgman replied

    What I'm trying to do is add a function in the child theme's functions.php that marks all page titles as h1, for SEO purpose.

    When googling I find suggestions like

    <?php the_title( '<h1>', '</h1>' ); ?>

    or

    'title' => "<h1>" . get_the_title() . "</h1>
    

    but none seem to work.

  •  7,280
    Oliver replied

    Hi,

    pls. provide the wp-admin and FTP access.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   Martnbrgman replied privately
  •  7,280
    Oliver replied

    Hi,

    pls. provide more info what you need to get in the end.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  7,280
    Oliver replied

    Also you're using wrong child theme, there should be custom.css file, child theme:

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver