Tagged: yigit
-
AuthorPosts
-
April 8, 2015 at 3:33 am #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.
April 8, 2015 at 2:57 pm #425338Hey 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,
YigitApril 9, 2015 at 5:04 am #425696Hi 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?
April 9, 2015 at 12:57 pm #425879Could you provide us with a link to the site in question so that we can take a closer look please?
Regards,
RikardApril 9, 2015 at 4:48 pm #426059Hi 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,
JeffApril 10, 2015 at 5:10 am #426329Hi 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,
RikardApril 10, 2015 at 5:58 pm #426676This reply has been marked as private.April 11, 2015 at 6:51 am #426931Hi 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,
RikardApril 11, 2015 at 4:41 pm #427041This reply has been marked as private.April 15, 2015 at 3:44 am #428634I 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.
April 15, 2015 at 4:39 am #428658Hi!
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!
IsmaelApril 15, 2015 at 5:48 am #428686I 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.
April 15, 2015 at 5:54 am #428689Here’s a screenshot of what I am trying to explain.
April 15, 2015 at 6:40 pm #429141Very 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.
April 16, 2015 at 7:13 pm #429831Hey!
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!
AndyApril 16, 2015 at 7:14 pm #429834Hey!
@CrazyGoodMarketing
You are using an old version of the theme. Please update to Enfold v3.1.4.Best regards,
AndyApril 16, 2015 at 8:01 pm #429855Hi 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.
April 19, 2015 at 12:45 am #430786Hi 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,
AndyMay 1, 2015 at 5:21 pm #438195Is there a way to add this breadcrumb shortcode to the child theme without editing the parent?
May 4, 2015 at 9:51 am #438793Hi!
Yes you should be able to do that, just add the changes to the corresponding file(s) in your child theme.
Cheers!
RikardMay 4, 2015 at 9:21 pm #439317So 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 lineThanks,
EricMay 5, 2015 at 4:12 am #439478Hey!
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!
IsmaelMay 5, 2015 at 4:03 pm #439788I 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' => '›', '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
-
AuthorPosts
- The topic ‘Enfold Layout – Breadcrumb only above and normal page heading/headline’ is closed to new replies.