create before content widget for specific page
-
I have a cleaning business website I’m about to 301 redirect for SEO purposes. It has a nivo slider inside the before content widget on home page, this widget only works on the home page. I’d like to make another before content widget for the new page im about to redirect to.
Here is coding I found in functions.php file hopefully someone can help me tweak it to work with specific page id.
/* Change the default rendering of the before content widget area to render before #container. */
remove_action( ‘pc_after_container’, array( &$this->_utility_callbacks_class, ‘front_page_before_content’ ) );
add_action( ‘pc_after_get_header’, array( &$this->_utility_callbacks_class, ‘front_page_before_content’ ), 11 );I could not find were the rest of pertaining code is. I was looking for something like sidebar-before-content.php, but all I found where these files:
sidebar-footer.php
sidebar-header.php
sidebar-primary.php
sidebar-secondary.phpI doubt any of them would be needed. Should I also create a new “sidebar-before-content.php” file? If so what would be the code for that?
Thank you for the help, I will really appreciate it as I’m not too savvy with this stuff.
- The topic ‘create before content widget for specific page’ is closed to new replies.