Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

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