Tagged: x
-
AuthorPosts
-
March 13, 2017 at 9:02 am #1404881
MacMartinoParticipantHi, 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>March 13, 2017 at 9:53 am #1404934
MacMartinoParticipantanother 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?
March 13, 2017 at 11:55 am #1405110
ChristianModeratorHey 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.
March 14, 2017 at 4:27 am #1406109
MacMartinoParticipantBut it is not for Ethos, it’s for Renew… so can I use (the) code as displayed for that option?
March 14, 2017 at 6:07 am #1406225
Paul RModeratorHi,
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
March 14, 2017 at 12:05 pm #1406762
MacMartinoParticipantOk. 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 😉
March 14, 2017 at 2:45 pm #1407020
JoaoModeratorHi There,
Let us know if you need further assistance.
Cheers
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1404881 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
