New Landing How can we help? Cardinal Directory single-listing sidebars

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Cardinal
  • #240239
    sixelements
    Member
    Post count: 6

    Hi – I would like to use a sidebar on Directory single listing pages. I have tried to implement this in two ways but both produce a strange result that seems to generate space for two sidebars which throws the layout out.
    Method 1: in Theme Options > Default Meta Options, I set the Default Page Sidebar Config to Right Sidebar and generated a new directory listing
    Method 2: added the sf_sidebar_config and sf_right_sidebar custom fields with correct values to a listing

    Is there a way to do this – I see that single-directory.php is set up to use sidebars.

    Site is on local development server currently…

    Thanks, Mark

    #240429
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    This is standard to the theme, are you running the latest version?

    The default sidebar layout is set from within the Theme Options => Archive/Category Options.

    Thanks.

    #240622
    sixelements
    Member
    Post count: 6

    Hi David – so I have used the Archive/Category Options but I still end up with the same result, that is, a broken layout which has space for two sidebars. See attachment. Can you talk me through the correct procedure for getting a sidebar onto a directory single listing page? I am using the latest version of both theme and plugin. Thanks, Mark

    Attachments:
    You must be logged in to view attached files.
    #240794
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    I can replicate this also on my dev version, I am going to chat with the team regarding this and see what we can do to help you.

    Thanks.

    #243942
    sixelements
    Member
    Post count: 6

    Hi David – just wondering if you have any developments on this. Thanks, Mark

    #244015
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    I thought I updated this as my dev version has this working, but updating this must have slipped off my radar.

    Currently there are no sidebar options for directory, so they just aren’t shown. If users didn’t want the default post setup to carry over, they would have no way to control it.

    However, you can modify the code to force a sidebar to show in the single view.

    1) Open the file: /wp-content/themes/cardinal/swift-framework/layout/single-directory.php
    2) Find line 30, it looks like this $page_content_class = $content_wrap_class = "";.
    3) Below that add in this $sidebar_config = "right-sidebar"; to set the page to hold a sidebar.
    4) Edit a single directory in the WP dashboard and add the custom field Name = sf_right_sidebar Value = sidebar-1.

    sidebar-1 relates to the sidebar you have setup in Appearance => Widgets.

    Thanks,
    David.

    #244308
    sixelements
    Member
    Post count: 6

    Thanks – works a treat

    #244401
    David Martin – Support
    Moderator
    Post count: 20834

    Great, happy to help you out.

    Thanks.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register