yeti1249 0 Report post Posted February 15, 2011 Is there a way to show secondary sidebar in PP theme on particular pages always and on particular pages only when the user ir logged in? And hide it on these pages when the user is logged out? Share this post Link to post Share on other sites
Kate 3 Report post Posted February 15, 2011 Hi Vladimir - Yes, that's possible. You'll have to modify the PHP file, though. (I recommend copying it to your child theme and modifying it from there.) You should be able to use this WP function as well: http://codex.wordpress.org/Function_Reference/is_user_logged_in Share this post Link to post Share on other sites
yeti1249 0 Report post Posted February 15, 2011 Thank you. I need to modify my sidebar.php? And if I want to do it with widgets - i need to modify template.dwidgets.php? Am I right? Share this post Link to post Share on other sites
cmunns 16 Report post Posted February 15, 2011 I would look into getting the "widget logic" plugin so that you can simply add the conditional Kate pasted in the link above: is_user_logged_in() Share this post Link to post Share on other sites
yeti1249 0 Report post Posted February 15, 2011 Thank you))))) Share this post Link to post Share on other sites