Forum Replies Created
-
AuthorPosts
-
Hey tcctemp and Peter I have been searching for this same thing:
Home / Portfolio page / Portfolio Entry
FYI I tried the above code and it resulted in removing Home and Portfolio entry from breadcrumb:
/ Portfolio Page /
I’ve read countless threads regarding portfolio breadcrumb including the one with the code below from Peter.
This achieves setting the ‘parent’ but also includes all the other portfolio categories which in many cases can be 10 or more.
Possibly this could be modified to only include ‘parent’ / portfolio item and not the categoriesnote: replace 20 with the desired parent page id
function avia_modify_breadcrumb($trail) { if(get_post_type() === "portfolio") { $page = 20; if($page) { if($page == $front) { $newtrail[0] = $trail[0]; $newtrail['trail_end'] = $trail['trail_end']; $trail = $newtrail; } else { $newtrail = avia_breadcrumbs_get_parents( $page, '' ); array_unshift($newtrail, $trail[0]); $newtrail['trail_end'] = $trail['trail_end']; $trail = $newtrail; } } } else if(get_post_type() === "post" && (is_category() || is_archive() || is_tag())) { $front = avia_get_option('frontpage'); $blog = avia_get_option('blogpage'); if($front && $blog) { $blog = '<a href="' . get_permalink( $blog ) . '" title="' . esc_attr( get_the_title( $blog ) ) . '">' . get_the_title( $blog ) . '</a>'; array_splice($trail, 1, 0, array($blog)); } } return $trail; } }
I also discovered google must have first crawled another portfolio masonary page and as a result it was stored as the session id “breadcrumb’ for all subsequent portfolio entries even if they weren’t included on that particular masonary portfolio page.
- This reply was modified 10 years, 8 months ago by ttem. Reason: add more info
March 23, 2014 at 3:13 am in reply to: How to get header background image to render at same time as logo and nav menu #241709Yes thank you Devin, I finally got the settings in W3TC to work was able to minify as well by switching to manual and removing the child theme’s style.css which breaks the layout if minified. Works much better than Super-cache and Better minify combo in my opinion.
This reply has been marked as private.Hi Josue,
Yes the megamenu items are hidden though shouldn’t they ‘expand’ and display when the parent menu is clicked as explained in the enfold header admin.
That is the functionality that is described there- but its not working and just want to confirm whether it may just not be working on my site.Thanks
March 19, 2014 at 10:12 am in reply to: How to get header background image to render at same time as logo and nav menu #239962This reply has been marked as private.March 19, 2014 at 10:12 am in reply to: How to get header background image to render at same time as logo and nav menu #239961Thank you Ismael, I’m using w3tc and working on speeding up load times with caching but minifying is a headache to get right. minifying html breaks layouts and haven’t been sucessful minifying css. Minified some js files, though its clear minifying is not for wimps.
I discovered you can dequeue scripts from certain pages for example woocommerce from non WC pages which can improve load time up to 1.5 seconds in some cases. This may be something others may want to try especially with larger plugin scripts…
cheers
March 13, 2014 at 7:11 pm in reply to: 2.6 Transparent header doesn't work if custom background header image is set #237129Hi Yigit,
Yes I’ve already updated to 2.6.1
Have you tested the transparent header effect when a custom background image has been set in header settings?
Just want to rule out that its not some other settings in my site they may be interfering.- This reply was modified 10 years, 8 months ago by ttem.
March 12, 2014 at 8:58 pm in reply to: 2.6 Transparent header doesn't work if custom background header image is set #236525Hi Yigit,
That did improve it as the slider images are appearing behind the semi opaque custom header background image so thank you for that.
Though the custom header background image is still there. Any ideas?Thank you for helping!
March 12, 2014 at 6:21 am in reply to: Really like the 2.6 header builder options! How to change title on social icons? #236140Thank you Ismael! I didn’t think it was going to that complicated.
Cheers!
March 12, 2014 at 2:33 am in reply to: 2.6 Transparent header doesn't work if custom background header image is set #236036This reply has been marked as private.March 11, 2014 at 8:56 pm in reply to: Really like the 2.6 header builder options! How to change title on social icons? #235847Hey Ismael,
Yes, I know that file controls the titles though the strings are stored elsewhere and are pulled in with this snippet:
on line 80
title='".ucfirst($icon['social_icon'])."'
Possibly use case argument like in lines 59-63
case ‘facebook’:
case ‘twitter’:
etc.
to change titles?
Thanks for helping on thisMarch 11, 2014 at 4:52 am in reply to: After update to 2.6 some css styles child theme style.css are not being applied #235175Thank you Devin changed enqueue to register – that fixed it.
Thanks Meanster, I suspected it was the child theme…..will check my customizations.
March 6, 2014 at 3:11 am in reply to: How to add search to mobile (smart phone width) slide-out menu? #233032Hi Yigit,
Yes, I checked that out. However that is not an suitable solution as it takes up quite a bit of screen real estate. Best to have it hidden and appear at the top the mobile slide-out menu. Maybe it could be triggered by the magnifying glass icon at the top of the slide-out menu?
Thanks for your help!
March 1, 2014 at 9:26 pm in reply to: How to Integrate Google Custom Search (CSE) into Enfold #231133Perfect! Thank you Peter!! Google powered search rocks! misspellings, semantic matches so much superior
Here’s some CSS adjustments to the Google results page I made that may help others:
.gsc-resultsHeader {display: none;}
.gsc-orderby-container {display: none;}
.gs-bidi-start-align {padding-left: 7px;}
.gsc-thumbnail{padding: 8px 0 11px 8px;}Customization to results styles can be made at your Google CSE interface.
Subscribe to the ads-free results and you may also remove Google branding:
.gcsc-branding {display: none;}Note in search.php I inserted the google search script in lieu of the existing search replacing lines 21-47:
<section class="search_form_field"> <?php echo "<h4>".__('New Search','avia_framework')."</h4>"; echo "<p>".__('If you are not happy with the results below please do another search','avia_framework')."</p>"; get_search_form(); echo "<span class='author-extra-border'></span>"; ?> </section> </div> <?php if(!empty($_GET['s'])) { echo "<h4 class='extra-mini-title widgettitle'>{$results}</h4>"; /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-search.php and that will be used instead. */ $more = 0; get_template_part( 'includes/loop', 'search' ); } ?>
Hope this will help other Enfold aficionados :)
March 1, 2014 at 12:23 am in reply to: Error on the top on the ajax results with relevanssi plugin search #230877Thanks Peter! I was trying to implement Relevanssi after seeing a tutorial for integrating it with Enfold.
So it seems for now there may be some incompatibility so I will implement Google custom search instead which should deliver better results. I’ll go over some of the previous threads for tips on that.Thank you for your team’s awesome support!!
February 21, 2014 at 10:39 pm in reply to: 2 h1 headings on product pages: 'Shop' in header and Product name #227716Mil Gracias Josue! I added the closing bracket } which was omitted from your posted code
so this is the ‘revised’ final
if(is_singular('product')){ $title = get_the_title(); $t_link = get_permalink(); }
Thank you again!
- This reply was modified 10 years, 9 months ago by ttem.
+100 for woocommerce product sidebar
The big reason for all the requests for sidebar on woocommerce product pages is the current poor usability on the responsive mobile as the everywhere sidebar and optionally other sidebar content get placed below the main image pushing the product content way down the page.
Moving the description and reviews tabbed content to the left and below the product image(s) and adding sidebar to right seems to be the most prevalent layout I’ve seen in other themes.
Thanks Team Kriesi you guys rock!February 21, 2014 at 9:17 pm in reply to: 2 h1 headings on product pages: 'Shop' in header and Product name #227683To clarify my previous post: the permalink on the H1 is still linking to the woocommerce ‘Shop’ page so needs to be changed to reflect the product’s url
<h1 class="main-title entry-title"> <a itemprop="headline" title="Permanent Link: Test Product" rel="bookmark" href="http://www.test.com/shop/">Test Product</a> </h1>
See the link still points to the ‘Shop’ page not the the product’s link
February 21, 2014 at 8:28 pm in reply to: 2 h1 headings on product pages: 'Shop' in header and Product name #227657Great Josue that works changing the subheader H1 to the product title but the H1 permalink needs to be changed as well from the /shop link to the product’s link
February 21, 2014 at 8:03 am in reply to: 2 h1 headings on product pages: 'Shop' in header and Product name #227303Thanks Josue I tried implementing that but it causes some strange behavior…. first loading the ‘Shop’ and product headings and then removing noticeably on each page load.
Maybe the best solution would be leaving the ‘Shop’ heading there but changing it from H1 to an H2 for product pages?
In this way the H1 from the product will take priority over the ‘Shop’ H2 which will fix the page’s SEO
Can this be done..changing the ‘Shop’ H1 to H2 heading on product pages?
February 21, 2014 at 1:27 am in reply to: 2 h1 headings on product pages: 'Shop' in header and Product name #227177I thought of that option though that gets rid of breadcrumb navigation in addition to not maintaining consistency though-out the site.
Displaying the product name as the h1 in place of ‘Shop’ would be the best solution. Then the second h1 in the product could be optionally hidden with css or removed from product template.
How to replace ‘Shop’ H1 with the current product?
Thank you for help!
February 17, 2014 at 9:25 pm in reply to: Replaced the default “Blog – Latest News” title needs H1 heading #225094Thank you Devin that worked, I will have to brush up on my css a little :)
February 14, 2014 at 9:19 am in reply to: If blog is in separate directory here's to remove /blog from portfolio item urls #223845Thanks Devin, would I be able to override that function in the child theme’s function.php file?
I want to avoid having edit this file each time theme is updated.
ThanksFebruary 14, 2014 at 12:47 am in reply to: Replaced the default “Blog – Latest News” title needs H1 heading #223712Thank you Ismael that solved it perfectly! This now displays all the blog titles in the header just like on pages.
How can I remove the blog’s <h1 class=”post-title entry-title” itemprop=”headline”> within the bolg content area as this is now duplicate of the blog post’s header h1.
I tried hiding it via css but this also hid the blog title on the blog category archive pages.
Anyway to remove it from blog page php output loop?
Many thanks
February 14, 2014 at 12:18 am in reply to: Blog grid: How to sort/display 1 category chronologically and 1 alphabetically? #223707Thank you again Ismael!
Thank you Peter that function helped fix the missing blog breadcrumb when using the blog grid without ‘assigning’ a blog page.
I modified it for use with ‘page’ post type. Now I can assign a ‘parent’ page breadcrumb to otherwise orphan pages.
Thank you again Peter and team Kriesi your support is outstanding! and much appreciated!Here’s the code for for others wanting to set a page parent breadcrumb – put the desired parent page id in custom field named ‘parent_breadcrumb-postid’
if(!function_exists('avia_modify_page_breadcrumb')) { function avia_modify_page_breadcrumb($trail) { if(get_post_type() === "page" ) { $pageid = get_field('parent_breadcrumb_postid'); if($pageid) { $page = '<a href="' . get_permalink( $pageid ) . '" title="' . esc_attr( get_the_title( $pageid ) ) . '">' . get_the_title( $pageid ) . '</a>'; array_splice($trail, 1, 0, array($page)); } } return $trail; } add_filter('avia_breadcrumbs_trail','avia_modify_page_breadcrumb'); }
Let me know if you see any improvements.
CheersFebruary 1, 2014 at 8:56 pm in reply to: Blog grid: How to sort/display 1 category chronologically and 1 alphabetically? #218290Big Thanks Peter works great!
I added
$query['order'] = 'DESC';
so most recent posts show first.Is it possible to specify multiple categories to sort by date:
if (!empty($terms) && in_array(55, $terms))
I tried adding another category id like below but that doesn’t seem to work
if (!empty($terms) && in_array(55,56, $terms))
Any idea how to aply the sorting to multiple categories in that function?
Thank you for your help!
+1 for Right Sidebar on woocom single product pages.(just like on the shop page)
The current single product widget area is on left below product image.
So on mobile particularly all menu or other items in that widget area will push all the main product description and info
menu item
menu item
menu item
menu item
menu item …..misc. sidebar widgets…..
down the screen= sub-par user experience.
Thanks Team Enfold rocks!edit – I see this was also requested by Zerozendesign last week:
The addition of a right sidebar option on a woocommerce page. For visitor usability, this seems like it would be a no brainer. The ability to add the shopping cart widget into the right sidebar so visitors could view their cart as they are shopping would be an ideal scenario.
November 13, 2013 at 7:47 am in reply to: Seperate Sidebar on all of my events – using event manager plugin #187638Edit: I noticed that the everywhere sidebar is not displaying below the calendar sidebar, how can I also have the sitewide everywhere sidebar display below the calendar sidebar?
Ismael,
I still haven’t figured out how to get everywhere sidebar to display below the on calendar.
Also noticed more importantly that the calendar page sidebar completely disappears in mobile. The sidebar does display fine on all other pages of site.
Any ideas how to fix this?
- This reply was modified 11 years ago by ttem.
-
AuthorPosts