Forum Replies Created
-
AuthorPosts
-
Ben SiegfriedMember
I didn't have
('94')
I had(94)
(no quotes). Removed those to repeat error and that didn't repeat the error, oh well, I'll take the fix, a fix that works is a good fix!Ben SiegfriedMemberOk, sweet, that worked, am able to pull in content from featured post widget to that page. I can't tell what was different, did you find it?
Thank you very much!
Ben SiegfriedMemberTried that it's giving the same parse error of:
Parse error: syntax error, unexpected ';', expecting ')' with all the same thereafter...
Ben SiegfriedMember//* Add the page widget in the content add_action( 'genesis_entry_footer', 'agency_add_page_content' ); function agency_add_page_content() { if ( is_page(94) ) genesis_widget_area( 'partial-client-list', array( 'before' => '<div id="partial-client-list">', ) ); }
Ben SiegfriedMemberParse error: syntax error, unexpected ‘;’, expecting ‘)’ in C:\Users\GRAPHICS\Documents\Websites\KPC\www.mywebsite.dev\wp-content\themes\agency-pro\functions.php on line 126
Ben SiegfriedMemberParse error: syntax error, unexpected ';', expecting ')' in C:\Users\GRAPHICS\Documents\Websites\KPC\www.mywebsite.dev\wp-content\themes\agency-pro\functions.php on line 126
Ben SiegfriedMemberJust tried this:
add_action( 'genesis_entry_footer', 'agency_add_page_content' );
and it still give an error for this line.The page ID is correct, I always use a widget that displays them.
Ben SiegfriedMemberMaybe this one? I am working in Agency-Pro though, not sure if this would work.
genesis_post_content (XHTML) This hook outputs the actual post content and if chosen, the post image (inside the #content div).
I want the widget area to pull in featured posts in a page's (not post) content area; I have a sidebar right (not where I want the widget area to pull in featured posts).
Ben SiegfriedMemberOh, the hook I chose is for a "loop block," a static page is outside of the loop, not part of the loop right? If that is the case I should choose a different hook. I want to hook into the content of the page or have the widget areas appear in the page.
Ben SiegfriedMemberRemoved HTML5 in parenthesis and it still parses an error for
add_action( 'genesis_entry_content', 'agency_add_page_content' );
Ben SiegfriedMemberOk, here's what I have and a parse error comes up for line 126, which is this one
add_action( 'genesis_entry_content (HTML5)', 'agency_add_page_content' );
I think I may have this
'agency_add_page_content'
wrong?Here's the full code:
//* Register the page widget area genesis_register_sidebar( array( 'id' => 'partial-client-list', 'name' => __( 'Partial Client List', 'agency' ), 'description' => __( 'This is the widget area in the content of a certain page.', 'agency' ), //* Add the page widget in the content add_action( 'genesis_entry_content (HTML5)', 'agency_add_page_content' ); function agency_add_page_content() { if ( is_page(94) ) genesis_widget_area( 'partial-client-list', array( 'before' => '<div id="partial-client-list">', ) ); }
November 8, 2013 at 12:50 pm in reply to: Adding Featured Posts widget areas to a static page #71732Ben SiegfriedMemberWhat is "nabm_add_page_bottom," is that a naming convention you created or a Genesis/WordPress naming convention?
Ben SiegfriedMemberThank you so much!
I'm using Agency-Pro, if you would share the other hook that would help more, other than that I believe I can apply what you're sharing to what I need to do.
Ben SiegfriedMemberI don't know how to do that off the top of my head. Do you know of any tuts or snippets that could lead me down the path?
I've manipulated homepages a bit and can get a widget area to register, just not sure how to do a specific page I have. It would be Client List page I want to use featured posts widget to insert their logos.
Ben SiegfriedMemberI went to Go to Appearance > Background > Display Options > Background color and changed it to red and nothing happens.
Ben SiegfriedMemberTested mine or a version of yours locally?
Ben SiegfriedMemberI just changed that to the color of the green island in the bg, cleared cache and it didn't do anything. The island is a .png with no background.
The body is the current blue.
The current blue bg has updated Agency-Pro's Blue theme CSS. Not sure if that would have anything do with it.
Ben SiegfriedMemberoops sorry, it was a cache issue related to adding too many characters to show.
Ben SiegfriedMemberTwo in one, good tip!
Ben SiegfriedMemberYah, I just the used h tags in the body of the text widget like you suggest. I wonder why you can't put html in the title of the text widget. All I want to do is put a <br> between two sentences—it works in the body of the text widget. I can get the same thing.
-
AuthorPosts