Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle
Search Results for 'sidebar'
-
AuthorSearch Results
-
In forum: Ascend Theme
In reply to: Display sku in shop pages
Thank you so much Ben, it’s works!!!
Only a little thing (maybe I’m wrong): my functions.php in child theme doesn’t work. When I’ve put the code in functions theme parent yes. My child theme path is named ascend_premium_child, inside there is style.css file and function.php
Inside style.css there is this code:/*
Theme Name: Ascend Premium Child
Theme URI: http://example.com/ascend-premium-child/
Description: Ascend Premium Child Theme
Author: Kadence Themes
Author URI: http://example.com
Template: ascend_premium
Version: 1.0.0
Tags: light, dark, two-columns, right-sidebar, responsive-layout
Text Domain: ascend-child
*//* Theme customization starts here
————————————————————– */Is there something wrong or is correct?
Thank you againIn forum: Virtue ThemeIn reply to: Place my own widget in a sidebar
May 31, 2019 at 11:02 am #227296What you posted seems to be missing the div tag, do they suggest that the div tag have a specific class or ID that is where the output would be and that is what you need to place into your sidebar, the whole thing can be placed into your sidebar in a custom html widget.
Ben
In forum: Pinnacle ThemeIn reply to: Custom sidebars for different blog categories
May 30, 2019 at 11:05 am #227148If you can’t see metabox options can you send me a login, I can inspect to see why your posts meta options are not there.
There has not ever been an option to assign sidebars for individual archive pages.
Ben
In forum: Pinnacle ThemeIn reply to: Custom sidebars for different blog categories
For what it’s worth – I used to be able to do this. I don’t know what happened…maybe there was a theme update or something. In fact, the way I was alerted to the change was that I randomly noticed the other day that all of my widget content had been mixed up, so I had to spend an hour or two rebuilding all of my widget content, only to discover that I could no longer assign custom sidebars to specific posts and post category archive pages. For example, I have some custom fields that I build out in my Events category posts, which then display in the sidebar when looking at the post (time, date, locations, etc.) I used to have this built out, but somehow it went away. I’m just looking for the right way to rebuild that.
In forum: Pinnacle ThemeIn reply to: Custom sidebars for different blog categories
May 30, 2019 at 10:53 am #227141For your single posts you can define the sidebar you want right in the post edit page.
If you need some php way to override that and assign a sidebar based on the category of the post you could do this:
add_filter( 'kadence_sidebar_id', 'custom_sidebar_by_category' ); function custom_sidebar_by_category( $sidebar ) { if ( is_single() ) { if (has_category('Category_slug')) { $sidebar = 'sidebar1'; } else if(has_category('Category_slug_2')) { $sidebar = 'sidebar2'; } } return $sidebar; }For archives where you want different sidebars for different archive pages then it would look like this:
add_filter( 'kadence_sidebar_id', 'custom_sidebar_for_category' ); function custom_sidebar_for_category( $sidebar ) { if ( is_category() ) { if (is_category('Category_slug')) { $sidebar = 'sidebar1'; } else if(is_category('Category_slug_2')) { $sidebar = 'sidebar2'; } } return $sidebar; }Let me know if that helps
Ben
In forum: Virtue ThemeHi team,
I have been instructed to place this code inside <body></body>-tags with its own <div>-tag. I have no clue what that means… I would like to use this function in a sidebar – can you instruct me or am I in deep water now…? Thanks!<script>
var _bws = _bws || [];
_bws[‘d’] = ‘c’; _bws[‘k’] = ’87xsbv75′;
(function() {
var bw = document.createElement(‘script’);
bw.async = true; bw.type = ‘text/javascript’;
bw.src = ‘*Login to see link
var bs = document.getElementsByTagName(‘script’)[0];
bs.parentNode.insertBefore(bw, bs);
})();
</script>In forum: Pinnacle ThemeIn reply to: Custom sidebars for different blog categories
I did try that, but it doesn’t assign the same sidebar to the individual post. For example, here’s a test page I created following your method: https://www.copelandcompany.com/events-and-workshops-page/.
And here’s a post that should show a specific sidebar just for events, but is instead pulling the default archives sidebar: https://www.copelandcompany.com/events-and-workshops/navigating-open-permits-surveys-workshop-realtors/
So I’m looking for maybe a more hard-coded solution. I’m familiar with PHP and I have a child theme. Maybe I can build individual archive-CAT.php files?
In forum: Pinnacle ThemeIn reply to: Custom sidebars for different blog categories
Sorry, I may not have been clear. I have custom sidebars with all kinds of custom content built into them, not just blog categories, for different blog category archive pages. For example I have blog categories:
-Buyers
-Sellers
-Investors
-Events & WorkshopsAll of which have different custom sidebars with lots of custom content built into the widgets, from text/HTML, menus, recent posts, lead capture form, etc. Need to find the cleanest work-around to assigning my custom sidebars to specific blog category archive pages.
In forum: Pinnacle ThemeIn reply to: Custom sidebars for different blog categories
Sorry, I just realized the category edit pages do not allow you to select a specific sidebar. A workaround would be to add your blog posts categories via shortcode. You can use the default page template and choose your sidebar, then add a shortcode like the following into the content area:
[blog_posts orderby=date items=8 type="normal" cat=photos]Hannah
In forum: Pinnacle ThemeIn reply to: Custom sidebars for different blog categories
In forum: Pinnacle ThemeHi! What’s the easiest way to assign custom sidebars I’ve created and populated to different blog category archives? For example, I have a blog category for “Real Estate Buyers” and “Real Estate Sellers”. What’s the easiest way to assign my custom sidebar content for each archive page? Thank you!
In forum: Virtue ThemeIn reply to: Customize blog entries categories
In forum: Virtue ThemeTopic: Slider transitions
Hi team,
I’m using a the Virtue Gallery widget in a sidebar, set to image carousel to give a slideshow of images.
Is there away to change the transition type to “fade”?
I saw the effect you got with your Woo Extras Product Gallery and it looks great.
Is there away to create a similar effect in the slider in my sidebar?Failing that, can Kadence Slider Pro be setup to provide a “fade” transition?
Very many thanks,
Phil.In forum: Virtue ThemeIn reply to: Sidebar above content… again
Thanks Ben and Hannah,
Re: sticky cart on mobile – no thanks. Just trying to make the cart accessible when on mobile, rather than have to scroll waaaaay down to the bottom of the product list.
Re: using woocommerce_cart – thanks, didn’t know that.
Re: mini-cart – I think that’s what I’m using in the sidebar. I don’t see a way to load it as a shortcode or a block in the content. That would be a great solution.Re: CSS solution – just the job, many thanks, Ben.
I’d like to disable the reverse on two pages. I thought the modification would look like this but it doesn’t work. Please could you help?
@media (max-width: 990px){ #content > .row:not(body.testimonials #content > .row, body.contact #content > .row) { display: flex; flex-direction: column-reverse; }Very many thanks,
Phil.In forum: Virtue ThemeIn reply to: Sidebar above content… again
May 27, 2019 at 9:43 am #226750Hey,
On mobile, are you wanting the cart to be sticky? I’m a little unsure how you are wanting it to work?Also while I don’t recommend this a simple way to make the sidebar above the content is with this css:
@media (max-width: 767px){ #content > .row { display: flex; flex-direction: column-reverse; } }You can’t (will break things) and shouldn’t (will break things) add [woocommerce_cart] to other pages then the cart page. There is a mini cart widget that you can add.
Ben
In forum: Virtue ThemeIn reply to: Sidebar above content… again
Thought I’d try a different approach. Added the shortcode [woocommerce_cart] above the list of products with the intent of hiding it with a media-query on larger screenwidths. Then you benefit from the sidebar version until the screen gets small, then the shortcode version shows the cart above the product list.
However, as soon as you add that shortcode, the page content goes to 100% and you lose the sidebar. Very strange. Is this an incompatibility with WooCommerce or am I doing something wrong?
Many thanks,
Phil.In forum: Virtue ThemeTopic: Sidebar above content… again
Hi Ben,
I have read your views on this but I understand a solution is available if critical.
My client wants to see the WooCommerce cart contents ABOVE the list of products when viewed on a cellphone.
The desktop display lisyts the products in the conetn and shows the cart in the sidebar. The sidebar is set using q2w3 to always remain visible as the user scrolls through the products. It works great on the desktop but cuses problems on the cell phone when the cart goes to the bottom.I’ve tried using a Kadence block row layout with the cart on the right hand side and the collapse behaviour from right to left so it ends up on top. And that works. BUT, on desktop, the cart scrolls off the top of the page (naturally!)
Please can you help?
I’ll send a login separately.
Kind regards,
Phil.In forum: Virtue ThemeIn reply to: Responsive row layout – additional breakpoint
In forum: Ascend ThemeIn reply to: Assign different sidebar on shop subcategories
In forum: Virtue ThemeIn reply to: Can’t create sidebar
I’m running OSX 10.11.6.
Using Safari 11.1.2 I created custom sidebars with no problems.
My main browser is Firefox and this is where I was having the trouble. This morning it updated to 67.0 from whatever it was yesterday, and now I can create sidebars again. I use a variety of Firefox extensions including Ghostery and Adblock Plus. These have caused some problems on other sites but usually on most sites they don’t. Maybe with yesterday’s version of Firefox, it might have helped to have deactivated all extensions. Don’t know.
At the moment the Firefox update is most the likely reason why the problem has been solved.
Thanks for your invaluable help, once again.
-
AuthorSearch Results



