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: Virtue Theme
In reply to: Text Widet on Sidebar
In forum: Virtue ThemeIn reply to: 'My Account' page with sidebar?
Hi Ben
Yep, all works great now – all the WC pages have my WC sidebar and all my more general pages have the standard sidebar.
And all changes done in the Child theme without major coding changes so easy enough to keep an eye on any pages you update in the future.
So a bit trial and error but with your heads up I learnt a bit more on how your theme is constructed.
So thanks for your perpetual help and I think the site can go live now (at long long last!)
Cheers, Colin
In forum: Virtue ThemeTopic: Text Widet on Sidebar
Hi,
I am using a text widget in the primary sidebar. In the text widget, I used a HTML code snippet but I just see the HTML text. It does not resolve to a box (as expected in the html)
a. The html should have given a box as in *Login to see link
b. I see the html as text. Refer *Login to see link
c. You can download the exact html here *Login to see linkThanks.
In forum: Virtue ThemeIn reply to: 'My Account' page with sidebar?
In forum: Virtue ThemeIn reply to: 'My Account' page with sidebar?
Ah, being a total idiot 🙂 – Writing that line with an echo (
echo '<div class="kad-account-sidebar"> </div>';) does bring it up… (so the principle does work).But the sidebar is dropped below the content so there is still a little problem to sort.
And removing that extra
</div>you placed on the My Account page causes the logged-out page to right itself.So we just have to find the right place to place that end div
In forum: Virtue ThemeIn reply to: 'My Account' page with sidebar?
OK, found virtue_premium/templates/account-sidebar.php …
if I put a
<div class="kad-account-sidebar"> </div>in the middle of:if ( 0 == $current_user->ID ) { } else { ?>on lines 4-6, then that should be enough for the filter to grab it is a sidebar?
And shouldn’t affect anything if I want to undo the functions.php filter / css above to get your sidebar back?
In forum: Virtue ThemeIn reply to: 'My Account' page with sidebar?
First part success! I have just the WC sidebar when I’m logged in.
But if I’m logged out, then there is again that yawning gap.
I presume that is due to a conditional is_logged_in in some template file that I could edit in child form (but which?).
Or is there another wizard functions.php tweak up your sleeve?
In forum: Virtue ThemeIn reply to: 'My Account' page with sidebar?
Thanks for that Ben! Can see where you added that.
I was doing a little bit of work on the WooCommerce payment / PayPal return bits, but nothing I thought that would affect a div close. Strange. I guess leave the div there for the moment and try taking it out after the next stage…
So it is there when logged in and I can certainly use your codes above to put in a primary sidebar (and then use the Widget Areas plugin to change to my WooCommerce one).
Would this also give me a sidebar for non-logged-in customers as well? I guess I’ll just try it out to find out!
All the best, Colin
In forum: Virtue ThemeIn reply to: Remove sidebar? & Add social media icons?
September 11, 2015 at 11:59 am #58082Hey,
You can have as many as you like. To add more go to the theme options > misc settings.You can set what is on the sidebars in your appearance > widgets page.
Ben
In forum: Virtue ThemeIn reply to: Remove sidebar? & Add social media icons?
Thanks, Hannah.
I got the social media icons up, and also removed the sidebar. 🙂
After making those changes, I think it’d look better to ahve a sidebar, but not the blog one. Can I have different sidebars on different pages, and if yes how many can I have and how do I set the content for each sidebar?
Thanks very much!
In forum: Virtue ThemeIn reply to: 'My Account' page with sidebar?
In forum: Virtue ThemeIn reply to: 'My Account' page with sidebar?
September 11, 2015 at 11:00 am #58059Hey,
The my-account page has it’s own sidebar for when you are logged in. It shows the users gravatar and a menu related to the account see here: https://www.kadencewp.com/my-account/If you want to override how that works and remove the my-account sidebar then you can use the function you have to add a sidebar but you will also need to set what sidebar you add:
add_filter('kadence_sidebar_id', 'myaccount_sidebar_id'); function myaccount_sidebar_id($sidebar) { if (is_account_page()) { return 'sidebar-primary'; } return $sidebar; }Then you may need to add this css:
.kad-account-sidebar { display: none; }Ben
In forum: Virtue ThemeIn reply to: Remove sidebar? & Add social media icons?
Hey,
You can turn the sidebar on for the homepage in Theme Options > Home Layout then for all other pages you can use fullwidth page templates. Or most templates have an option to turn the sidebar off from the them edit page.
For social icons you can use the virtue: social icons widget (Appearance > Widgets). See the second footer column here- http://themes.kadencethemes.com/virtue-premium/
Or you can use a plugin, depending on how you want it set up.
Hope that helps!Hannah
In forum: Virtue ThemeHi Ben – sidebars again!!!
In the past you gave me code for getting a sidebar onto WooCommerce pages and also the 404 page. But I have just seen that the WC ‘My Account’ page is without a sidebar:
*Login to see linkNow this is strange as I thought your general is_account_page() conditional would catch this. But then I thought I’d adapt your 404 code to add my own conditional filter:
add_filter('kadence_display_sidebar', 'my_account_sidebar');
function my_account_sidebar($sidebar) {
if (is_page( 'my-account' )) {
return true;
}
return $sidebar;
}As well as the slug, I also tried the ‘My Account’ full name. and even just the page ID.
Neither is working though, so I’d really appreciate some help on where this is going wrong.
Many thanks, Colin
In forum: Virtue ThemeIn forum: Virtue ThemeIn reply to: Moving and Adding Breadcrumbs
Breadcrumbs alignment to the left (my preferences)
http://www.thuyvuong.com/responsive-designs-in-a-corporate-world/Breadcrumbs alignment to the right, above sidebar (not my preference)
http://www.thuyvuong.com/category/emerging-themes/
http://www.thuyvuong.com/journal/Can we duplicate my preferences to have breadcrumbs align to the left, above photo
In forum: Virtue ThemeIn reply to: Virtue Recent Posts Alignment
In forum: Virtue ThemeHey Ken,
You could use a plugin like this: https://wordpress.org/plugins/page-specific-menu-items/
Or with pagebuilder you could add a custom menu widget to the page.
When you say you cannot use a sidebar on posts you mean you don’t want to, not that the theme doesn’t offer it, correct? Because there is an option for posts with sidebars. Just clarifying:)
Hope one of those options is helpful!Hannah
In forum: Virtue ThemeIn forum: Virtue ThemeIn reply to: Unable to remove side bar from Blog page
September 9, 2015 at 11:39 am #57805In your settings > reading. Make sure you have not set a page to be the “post page” just leave that blank on select.
Then in your blog page itself you can choose to show or hide a sidebar.
Ben
-
AuthorSearch Results


