Using the Sidebar Activation Filter with a Genesis framework template

Author
Topic
#4665

My website is built using the Genesis framework and Dynamik child theme. I want a Smart Sidebar Slider which only appears on certain “Product” pages, so I have created a template which these pages are going to use and added the following code before the “genesis();” line:

add_filter(‘sss_sidebar_activation_2’, ‘sidebar_2_activation’);
function sidebar_2_activation() {
return TRUE;
}

I have also set the Sidebar rules mode to “Manual Only”.

However the sidebar doesn’t appear. (It appears when the rules mode is set to “Site wide”).

Viewing 2 replies - 1 through 2 (of 2 total)
Author
Replies
  • #4668

    It is possible that your code is not executed when it is needed. Plugin checks for the activation on ‘wp’ action, and I plan to replace that in the next update, but right now it requires more testing. I recently published 2.9 version, so this change is expected in 3.0. But, problem is that the action I need to use will be always run before individual template is loaded, so this code can’t be run inside the template, it has to be added before the template.

  • #4669

    Ok, thanks for the explanation. I can work around it in the meantime. I look forward to version 3.0.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.