Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1089696

    Hey,

    I have already removed the title/breadcrumbs container successfully with quick css. That worked out well!

    But now the Page Title (H1) doesn’t appear on the site anymore.

    -> Is there a way to “move” the H1 into the visible section of the page? So that the user can see it again?

    Thank you in advance!

    Kind regards,
    Nicolas

    #1089746

    Hey nicolas_1,

    Please provide a link to the site/page in question so we can look into this issue further.

    Best regards,
    Jordan Shannon

    #1090068

    Hey, Jordan,

    thank you for your quick feedback!

    I wrote the link address in the private section.

    Kind regards,
    Nicolas

    #1090182

    Hi,

    What code did you use to hide the breadcrumbs?

    Best regards,
    Jordan Shannon

    #1090338

    Hi,

    I used:

    .title_container { display: none; }

    I have the code from the forum from another thread.
    There this code was recommended to hide the title/breadcrumbs section (subheader section).

    https://kriesi.at/support/topic/remove-alternate-content-area/#post-218971

    Kind regards,
    Nicolas

    #1090457

    Hi,

    here an additional info:

    It makes no difference if i hide the subheader section using css code or using the appropriate setting when editing a page on the right hand (“title bar setting”).

    title bar settings

    Kind regards,
    Nicolas

    #1090485

    Hi,
    I have a couple of ways to show the H1 title in the content area if you wish to hide the title bar and breadcrumbs.
    The first is a shortcode that you can place on every page where you want to show the title, such as in a code block element.
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    //title shortcode = [page_title]
    function page_title_sc( ){
    	return '<h1>'. get_the_title() . '</h1>';
    }
    add_shortcode( 'page_title', 'page_title_sc' );

    Then wherever you add the code: [page_title] it will show.
    This one is a little harder but will automatically show the title in the content area on pages created with the Advanced Layout Builder.
    To add a page title automatically above the page content, but below the title bar, first, add this shortcode to your functions.php

    function page_title_sc( ){
    	return '<h1 class="container">'. get_the_title() . '</h1>';
    }
    add_shortcode( 'page_title', 'page_title_sc' );

    Then edit: \enfold\template-builder.php on lines 100-102, look for:

    	$content = apply_filters('the_content', $content);
    	$content = apply_filters('avf_template_builder_content', $content);
    	echo $content;

    and change to:

    	$content = apply_filters('the_content', $content);
    	$content = apply_filters('avf_template_builder_content', $content);
    	echo do_shortcode("[page_title]");
    	echo $content;

    This is the results:
    2019-04-13-011605

    Best regards,
    Mike

    #1090621

    Hi Mike,

    Thank you for your suggestions for solving the problem!

    But I have found a very easy solution to my problem:

    I can simply add a “special heading” in the editor and mark it as H1. So the H1 will be visible in the content section. Additionally the H1 in the subheader section is not shown in the source code, so that I don’t have two H1.

    However, thank you for your quick and detailed help!

    You can close this thread.

    Kind regards,
    Nicolas

    #1090676

    Hi,
    Thanks for sharing your solution, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘H1 not visible if title/breadcrumbs container is removed’ is closed to new replies.