Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1404881
    MacMartino
    Participant

    Hi, sorry to bother you, but in my search for an answer I come to 2014/2015 suggestions. So I would like to know: if I would like a sidebar in a portfolio page, how can I add it? And if I add’reactions’ in the widget area (I would create a special sidebar for portfolio items) would it be linked to the portfolio-reactions, or is that for all (e.g. posts) reactions?

    This is a code I found (?) only I use the RENEW stack and not ethos :(…

    <?php get_header(); ?>

    <div class=”x-containermax width main”>
    <div class=”offset cf”>
    <div class=”x-main left” role=”main”>

    <?php while ( have_posts() ) : the_post(); ?>
    <?php x_get_view( ‘ethos’, ‘content’, ‘portfolio’ ); ?>
    <?php x_get_view( ‘global’, ‘_comments-template’ ); ?>
    <?php endwhile; ?>

    </div>
    <?php get_sidebar(); ?>
    </div>
    </div>

    #1404934
    MacMartino
    Participant

    another question, a bit in the same area ;): you can make multiple sidebars in WP.I tried to make one, and with taxonomies for specific categories of posts. But instead all posts have the same (MAIN) sidebar. Any idea how to make it work?

    #1405110
    Christian
    Moderator

    Hey there,

    Adding a portfolio sidebar to Ethos would be a bit more involved. You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/

    You will need to select each individual post in the sidebar setting. The category or taxonomy option is only for the taxonomy page and not individual posts. This might be improved in a future version but for now, this is how it works.

    Thanks.

    #1406109
    MacMartino
    Participant

    But it is not for Ethos, it’s for Renew… so can I use (the) code as displayed for that option?

    #1406225
    Paul R
    Moderator

    Hi,

    No, you cannot use the code.

    The code you have shared is not meant to do that, it will only add a sidebar but not a specific sidebar.

    Thanks

    #1406762
    MacMartino
    Participant

    Ok. Workaround then 🙁
    added CSS
    x-portfolio .entry-info {
    width: 100%;
    }

    And, copy content-portfolio.php located in wp-content\themes\x\framework\views\renew to the same directory structure in your child theme wp-content\themes\x-child-renew\framework\views\renew. Open the copied file and delete the code

    <div class=”entry-extra”>
    <?php x_portfolio_item_tags(); ?>
    <?php x_portfolio_item_project_link(); ?>
    <?php x_portfolio_item_social(); ?>
    </div>
    Save the file.

    Then added portfolio to cornerstone settings and voila, you can create a layout, not with a real ‘sidebar’ but almost 😉

    #1407020
    Joao
    Moderator

    Hi There,

    Let us know if you need further assistance.

    Cheers

  • <script> jQuery(function($){ $("#no-reply-1404881 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>