-
AuthorPosts
-
January 4, 2016 at 1:16 pm #731303
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.
January 4, 2016 at 8:16 pm #731776Hello 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.
January 5, 2016 at 10:44 am #732810Hi –
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?
January 5, 2016 at 4:58 pm #733303Hello 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,
XJanuary 5, 2016 at 5:08 pm #733311Oh 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.
January 5, 2016 at 5:29 pm #733340I 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;”]
January 5, 2016 at 5:29 pm #733343Oops.
<a href="http://mydomain.com/cart/">Shopping Cart [icon type="shopping-cart" style="font-size: 1.5em;"]</a>
There is the code.
January 6, 2016 at 12:08 am #733645Thanks for sharing the code.
Have a nice day.
February 4, 2016 at 1:37 am #779419I 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
February 4, 2016 at 3:09 am #779503Hello 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!
-
AuthorPosts