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'

Home / Forums / Search / Search Results for 'sidebar'

Viewing 20 results - 3,981 through 4,000 (of 5,356 total)
  • Author
    Search Results
  • In forum: Virtue Theme

    In reply to: Text Widet on Sidebar

    #58184
    This reply has been marked as private.
    #58175

    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

    #58168

    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
    b. I see the html as text. Refer
    c. You can download the exact html here

    Thanks.

    #58141

    Right placed that </div> at the bottom of a child woocommerce > myaccount > my-account.php and it has all come right.

    Still no idea why that coding went missing (plugin?) but thanks for the heads up and the codes to get the right sidebar.

    Cheers, Colin

    #58137

    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

    #58118

    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?

    #58110

    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?

    #58108

    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

    #58082

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

    #58076

    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!

    #58065

    Ah, herein lies the problem methinks.

    Whether I’m logged in or out, there is no sidebar on this site – so none to remove or replace.

    And are we talking about the WooCommerce ‘My Account’ page? The one it autocreates and adds its shortcode to?

    Colin

    #58059

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

    #58037

    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

    #58027

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

    Now 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

    #58022

    Hi — I like having a sidebar on my home page, but don’t want it to appear on other pages.
    Is that possible in the Virtue Premium theme? If yes, how does one do that?

    Also, how do I add social media icons? (FB, twitter, linkedin)

    Thank you.

    #57935

    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

    #57908

    Hey,
    You can use this css to remove the dates:

    .sidebar .kadence_recent_posts .recentpost_date {
    display: none;
    }

    Hannah

    #57828

    Hey 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

    #57814

    Hi,

    I cannot find a way to designate a sub-menu (of categories) ONLY to the posts (pages) themselves. Can that be done easily?

    At this point, any place above the post would be good. I cannot use a sidebar on the posts.

    Thank you,

    Ken

    EcoHomesAustin.comk

    #57805

    In 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

Viewing 20 results - 3,981 through 4,000 (of 5,356 total)