Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #731303

    creatorofstuff
    Participant

    I’m almost there.

    I figured out to put something like this in the “topbar content” section of the customize>header interface:

    Shopping Cart[icon type=”shopping-cart”]

    It takes you to the cart if you click on it, but I don’t see an icon. Just “Shopping Cart[icon type=”shopping-cart”]”.

    What would the correct code be to show only the cart icon? Thank you.

    #731776

    Lely
    Moderator

    Hello There,

    That is because the Topbar Content doesn’t recognize shortcodes. Please do add the following code on your child theme functions.php file for the shortcode to work on topbar:

    add_filter('x_option_x_topbar_content', 'top_bar_content_shortcode');
    function top_bar_content_shortcode ( $content ) {
    return do_shortcode ( $content );
    }

    Hope this helps.

    #732810

    creatorofstuff
    Participant

    Hi –
    Thanks for the suggestion!

    I put that code just before the last “}” in functions.php (was that the right place?) but it had no effect, unfortunately. πŸ™

    Any other thoughts?

    #733303

    Lely
    Moderator

    Hello There,

    The code should be put after the last }. Currently, it might be a part of other functions that’s why it is not working. If that doesn’t after moving the code, please do give us FTP access on a private reply so we can check further.

    Always,
    X

    #733311

    creatorofstuff
    Participant

    Oh yes, that works great! Thank you. πŸ™‚

    Last question. The icon is tiny. I’d like to make it a little bigger. I found a post that says to add something like this: [icon style=”font-size:30px;”] but when I tried that, it only shows an x after the tiny shopping cart icon. Any advice?

    Thanks again.

    #733340

    creatorofstuff
    Participant

    I realized I messed up in the above example. I have it working now.

    Thanks for the help!

    In case anyone is searching, this worked:

    Shopping Cart [icon type=”shopping-cart” style=”font-size: 1.5em;”]

    #733343

    creatorofstuff
    Participant

    Oops. <a href="http://mydomain.com/cart/">Shopping Cart [icon type="shopping-cart" style="font-size: 1.5em;"]</a>

    There is the code.

    #733645

    Christopher
    Moderator

    Thanks for sharing the code.

    Have a nice day.

    #779419

    bayne
    Participant

    I am having similar issue, and would like to resolve it. I am in the function.php file, and looking where to add code to change “shop” url, so I can redirect to my custom shop created with ess. grid.

    Additionally, I’d like to edit the name of “the shop” in breadcrumbs to something else, as I am using a different name for my shop page.

    Thanks

    #779503

    Rue Nel
    Moderator

    Hello There,

    Thanks for updating this thread!

    Did you have followed the instruction given in this post, https://community.theme.co/forums/topic/change-shop-link-in-breadcrumbs-to-custom-url-add-second-header/#post-728915?

    You can rename the “The Shop” title in the breadcrumb by going to the customizer, Appearance > Customize > {Your Stack} > Shop Options and change the “Shop Title”. If you happen to follow the instructions in the post we ponited out, you can also hard code the Shop Title.

    If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Thanks!