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

    When I create a page in Enfold, the page title field is not displayed. (When I say page title I am referring to the values returned by <?php the_title(); ?>
    To get around this I have to create a text block and write text in an h1 tag.

    How can I use the page title as an h1 tag in Enfold? Is it redundant? I would like to display it on all pages like in other WP themes.
    Do I need to edit the template files?

    #291526

    Hey BarkProductions!

    Thank you for using our theme.

    If you want to display <?php the_title(); ?> on a page, you must change the template file.

    To avoid doing changes on every update, I would recommend using a child theme.
    I would put the changing in enfold/includes/loop-page.php at line 6

    
    echo '<h1>'.get_the_title().'</h1>';
    

    If you are using a child theme, copy the original file to the child theme in folder includes and make your changes there.

    For pages with the template bouilder it is easier to use the “Special Heading” element.

    Best regards,
    Günter

    #291921

    Hi Gunter
    Thanks but that didn’t work in the theme. It didn’t add anything to the page.
    I’ll use the ‘special heading’ element instead.

    #291939

    Hi!

    Select this setting when editing the Pages:

    Or globally:

    Best regards,
    Josue

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