Forum Replies Created

Viewing 30 posts - 31 through 60 (of 79 total)
  • Author
    Posts
  • in reply to: Portfolio: Breadcrumbs are displaying incorrectly #244104

    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 categories

    note: 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

    Yes 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.

    in reply to: Hide Mobile Menu Submenu Items #241383
    This reply has been marked as private.
    in reply to: Hide Mobile Menu Submenu Items #240540

    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

    This reply has been marked as private.

    Thank 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

    Hi 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.

    Hi 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!

    Thank you Ismael! I didn’t think it was going to that complicated.

    Cheers!

    This reply has been marked as private.

    Hey 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 this

    Thank you Devin changed enqueue to register – that fixed it.

    in reply to: Header issues after update to v2.6 #235010

    Thanks Meanster, I suspected it was the child theme…..will check my customizations.

    Hi 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!

    Perfect! 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 :)

    Thanks 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!!

    Mil 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.
    in reply to: Enfold Feature Requests #227688

    +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!

    To 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

    Great 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

    Thanks 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?

    I 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!

    Thank you Devin that worked, I will have to brush up on my css a little :)

    Thanks 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.
    Thanks

    Thank 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

    Thank you again Ismael!

    in reply to: Add breadcrumb from 'parent' blog grid page #218998

    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.
    Cheers

    Big 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!

    in reply to: Enfold Feature Requests #208318

    +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.

    Edit: 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.
Viewing 30 posts - 31 through 60 (of 79 total)