Tagged: 

Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #425048

    I don’t think it’s possible to easily do this through the layout options but…

    It would be great to have the bar beneath the header only have breadcrumbs and shift the primary heading or headline into the main content area as a layout option.

    This mostly applies to pages. Unlike posts, each page’s headline is so disconnected from the content.

    Sure, We could add an additional subheading but that is additional work that doesn’t make sense with other themes.

    In this case it seems like a design choice was made over page usability.

    Your current options for “Header Title and Breadcrumbs”

    • Display title and breadcrumbs
    • Display only title
    • Display only breadcrumbs
    • Hide both

    Why not offer another option in the dropdown from the “Header Title and Breadcrumbs” selection for:

    • Breadcrumb bar and title in content

    This would force pages to place a normal heading within the primary content area while still allowing a breadcrumb bar as it is.

    • This topic was modified 9 years, 8 months ago by mattmikulla.
    #425338

    Hey mattmikulla!

    You can refer to this post and add breadcrumbs as shortcode – http://kriesi.at/documentation/enfold/inserting-breadcrumbs-as-shortcode/
    Also, please feel free to request such feature here – https://kriesi.at/support/enfold-feature-requests/

    Regards,
    Yigit

    #425696

    Hi Yigit,

    I have the same issue where I would like to have breadcrumbs on the page using the left sidebar menu option. I followed your solution above to add breadcrumbs as shortcode and it did not work.

    Other ideas?

    #425879

    Hi @CrazyGoodMarketing!

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Regards,
    Rikard

    #426059

    Hi Rikard,

    Sure! Here’s a link to the page were I tried your solution: http://50.87.144.88/~cgm4edcc/edcconline.org/attend/.

    Thanks for taking a look.

    Regards,
    Jeff

    #426329

    Hi Jeff!

    Could you please provide us with a temporary admin login so that we can take a closer look? You can post the details here as a private reply.

    Best regards,
    Rikard

    #426676
    This reply has been marked as private.
    #426931

    Hi Jeff!

    Are you sure you followed the guide because I couldn’t find add_shortcode( ‘bread_crumb’, ‘avia_title’ ); in your functions-enfold.php file?

    Best regards,
    Rikard

    #427041
    This reply has been marked as private.
    #428634

    I looked at the Enfold feature request page and there are a bunch of people requesting this just in different threads and explanations.

    I don’t want to add breadcrumbs as a shortcode. I want a breadcrumb bar and a headline within the content like 99.9% of all themes. Meaning… how a page should work and look.

    #428658

    Hi!

    Yes, I guess this a design choice and it seems to have work for more than 100,000 users of avia themes. Anyway, it’s not that difficult to modify or remove the title with css. You can also use filter and action hooks to completely remove it from the breadcrumb bar. If you can provide a screenshot on how you want your normal page to look, maybe we can help. Remove the default title with this on functions.php:

    add_filter('avf_title_args', 'avf_title_args_mod', 10, 2); // remove default title
    function avf_title_args_mod($args,$id)
    {
    	$args['html'] = "<div class='{class} title_container'><div class='container'>{additions}</div></div>";
        return $args;   
    }

    Cheers!
    Ismael

    #428686

    I just want a page template that has the page’s title within the main content area. I don’t want the page title to be in the bar with the breadcrumbs.

    Maybe pages that are children behave that way. Don’t know and haven’t checked. I’m looking at top level pages like “about” and “contact”.

    Think of the way Enfold handles a single blog post.

    The main title or headline is in the content area.

    Pages should be able to behave the same way without the need to put an additional heading in the content area to behave like a headline.

    #428689

    Here’s a screenshot of what I am trying to explain.

    Screenshot of what a page's layout should be normally

    #429141

    Very frustrating that this is still an issue. It may be because I’m using the left-side menu option but I’ve implemented the recommended solution (http://kriesi.at/documentation/enfold/inserting-breadcrumbs-as-shortcode/) and breadcrumbs are still not showing up on my page.

    #429831

    Hey!

    Enfold was designed this way and thousands of people like it. However, If you want to remove the title from the bar with the breadcrumbs use this code:

    h1.main-title.entry-title {
    display: none;
    }
    

    and then you can add and a custom title using the Avia Layout builder to the main content.

    Now for your blog you can also use the Avia Layout Builder, so you can design and modify the blog how you wish and need it.

    If you add a feature request for Kriesi which is requested by lots of people already, then he will add it in future updates. Thank you for helping us to improve the theme.

    Cheers!
    Andy

    #429834

    Hey!


    @CrazyGoodMarketing

    You are using an old version of the theme. Please update to Enfold v3.1.4.

    Best regards,
    Andy

    #429855

    Hi Andy, updated to v3.1.3 follow instructions here (http://kriesi.at/documentation/enfold/inserting-breadcrumbs-as-shortcode/) and I’m still not seeing bread crumbs via the [bread_crumbs] short code. Here’s my page (http://50.87.144.88/~cgm4edcc/edcconline.org/join/). The [bread_crumb] shortcode is between the page title and image but I’m not seeing it.

    #430786

    Hi CrazyGoodMarketing,

    this line:

    add_shortcode( 'bread_crumb', 'avia_title' );
    

    was in the wrong place. I put it in the correct location now. Unfortunately your breadcrumbs are still not showing up. I think this is because you are using a left side menu and not a default top header menu. With a left side menu the title bar settings (where you can set to display breadcrumbs) are not available. You can check this when editing your page (scroll down, on the right side).

    Let me tag this for my teammates in hope they have any idea for you.

    Regards,
    Andy

    #438195

    Is there a way to add this breadcrumb shortcode to the child theme without editing the parent?

    #438793

    Hi!

    Yes you should be able to do that, just add the changes to the corresponding file(s) in your child theme.

    Cheers!
    Rikard

    #439317

    So going by http://kriesi.at/documentation/enfold/inserting-breadcrumbs-as-shortcode/ is this right?:

    1. create a functions-enfold.php file in my child theme
    2. copy and paste the whole avia_title() function in from the parent theme
    3. put after it add_shortcode( ‘bread_crumb’, ‘avia_title’ );
    4. clone the template-builder.php file to the child theme
    5. comment out the 19th line

    Thanks,
    Eric

    #439478

    Hey!

    If you’re going to add it in a child theme, replace the code:

    add_shortcode( ‘bread_crumb’, ‘avia_title’ )
    

    with this:

    add_action('init', 'ava_add_custom_shortcode', 10);
    function ava_add_custom_shortcode() {
    add_shortcode( 'bread_crumb', 'avia_title' );
    }

    Note that the new title container shortcode will not look entirely the same as the default one. You need to modify it via css.

    Cheers!
    Ismael

    #439788

    I only wanted the breadcrumbs on their own, so I ended up putting the following into my child theme’s functions.php:

    if (!function_exists('only_breadcrumbs')) {
        function only_breadcrumbs($atts) {
            $atts = shortcode_atts( array(
                    'separator' => '&rsaquo;',
                    'front_page' => true,
                    'show_home' => __('Home', 'avia_framework'),
                    'richsnippet' => false
                ), $atts, 'bread_crumb');
            $breadcrumb = avia_breadcrumbs( array(
                'separator' => $atts['separator'],
                'front_page' => $atts['front_page'],
                'show_home' => $atts['show_home'],
                'richsnippet' => $atts['richsnippet'],
                'before' => false  // removed the text before the breadcrumbs
            ));
            return $breadcrumb;
        }
    }
    add_shortcode('bread_crumb', 'only_breadcrumbs');

    It seems when writing the shortcode, the separator works best with html entities and 0s and 1s instead of false and true, so
    [bread_crumb separator="& gt;" show_home=0]
    (no space between the & and gt;)
    Would change the separator to a > and remove the Home link. If I tried to set the separator=”>”, then it would actually use a double quote, greater than sign, and another double quote, and false didn’t seem to work for show_home.

    • This reply was modified 9 years, 7 months ago by FindlyTalent. Reason: didn't want html entities to encode
Viewing 23 posts - 1 through 23 (of 23 total)
  • The topic ‘Enfold Layout – Breadcrumb only above and normal page heading/headline’ is closed to new replies.