• Resolved Thobie

    (@thobie)


    Hello,

    how can I prevent the appearence of the side title on the concerning side?

    I wish you a nice day.

    Regards

    Thobie

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    I’m not too sure what you mean? Can you show me a screenshot of the element possibly?

    Thread Starter Thobie

    (@thobie)

    Hello, Tom,

    you see on the starting page of my website https://www.medien-schmie.de that the name of the side that appears in the menu bar ?Home“ appears also on the top of the side.

    I want to prevent the appearence of the name of the side that it doesn’t appear twice.

    I wish you a nice day.

    Regards

    Thobie

    Theme Author Tom

    (@edge22)

    Gotcha – two options:

    a) Name the page whatever you like, then change the Navigation Label to “Home” in “Appearance > Menus”.

    b) Use the Disable Elements meta box to disable the content title: https://docs.generatepress.com/article/disable-elements-overview/

    Thread Starter Thobie

    (@thobie)

    Hello, Tom,

    I have modified the file content-page.php and I have deleted the following code:

    <?php if ( generate_show_title() ) : ?>
    <header class=”entry-header”>
    <?php the_title( ‘<h1 class=”entry-title” itemprop=”headline”>’, ‘</h1>’ ); ?>
    </header><!– .entry-header –>
    <?php endif; ?>

    Please can you tell me why the page title isn’t shown on the first 14 pages but always yet show on the last 2 pages ?Impressum“ and ?ABG“?

    I wish you a nice day.

    Regards

    Thobie

    Theme Author Tom

    (@edge22)

    I wouldn’t delete that code – touching core code is never a good idea.

    Instead, try adding this PHP snippet:

    add_action( 'after_setup_theme', 'tu_remove_titles' );
    function tu_remove_titles() {
        add_action( 'generate_show_title', '__return_false' );
    }
    Thread Starter Thobie

    (@thobie)

    Hello, Tom,

    you code doen’t work.

    I have fixed the issue. The page title of both pages was separately set on both pages. I have deleted the page titles manually on both pages and now it works.

    I wish you a nice day.

    Regards

    Thobie

    Theme Author Tom

    (@edge22)

    Glad you found a solution ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Side title’ is closed to new replies.