Forum Replies Created
-
AuthorPosts
-
IamRobMember
Ok, thank you very much Brad 🙂 you rock!
IamRobMemberIamRobMemberYes, I fixed the error but I'm probably did something wrong cause I can't see the widget in the about page (id page 278). If the code works as you said I should see the widget I thought.
IamRobMembermmm there's something wrong:
"Parse error: syntax error, unexpected T_STRING in /web/htdocs/www.italianluxuryweddings.com/home/wordpress/wp-content/themes/modern-portfolio/functions.php on line 81"
I can test online, this theme it's just an example. When it will works I'll replace the theme in my real domain 🙂
Thank you 🙂
IamRobMemberThe page is: http://www.italianluxuryweddings.com/wordpress/about-me
I think I wrote the right name inside the code.
IamRobMemberYes, I did.
This is the website: http://www.italianluxuryweddings.com/wordpress/
I'd like to have in every page the same header. The header with the logo and the image is the widget "ABOUT" of the Modern Portfolio Child Theme. I simply putted the logo inside the widget and changed the background of the #about section inside the style.css
This is the code I added to the function.php page, but it doesn't works.
genesis_register_sidebar( array(
'id' => 'page-widget',
'name' => __( 'Page Widget', 'wpsitesdotnet' ),
'description' => __( 'Contact page widget.', 'wpsitesdotnet' )
) );
/**
* @author Brad Dalton - WP Sites
* @example http://wp.me/p1lTu0-9Jr
*/
add_action( 'genesis_after_header', 'wpsites_page_widget', 5 );
function wpsites_page_widget() {
if ( is_page('about-me') && is_active_sidebar( 'page-widget' ) ) {
echo '<div class="widget">';
dynamic_sidebar( 'page-widget' );
echo '</div><!-- end .page-widget -->';}
}IamRobMemberI tried but it doesn't works. The widget doesn't appear inside the page.
IamRobMemberExactly! I'd like to have the same widget even inside a page I've created, not only in the home page.
-
AuthorPosts