Forum Replies Created
-
AuthorPosts
-
Frank
MemberThanks again Christoph, the second link is exactly what I was looking for.
Cheers 🙂
Frank
MemberHi Christoph, thanks a lot for your reply. I couldn't get back to this before.
I've followed the page you suggest and even though the new widget does appear in the dashboard, actual pages do not show any content. This is the code I have so far:
//* Register widget area genesis_register_sidebar( array( 'id' => 'after-page', 'name' => __( 'After Page', 'themename' ), 'description' => __( 'This the After Page widget area', 'themename' ), ) ); //* Hook after post widget area after page content add_action( 'genesis_entry_footer', 'sp_after_page_widget' ); function sp_after_page_widget() { if ( is_singular( 'page' ) ) genesis_widget_area( 'after-post', array( 'before' => '<div class="after-post widget-area">', 'after' => '</div>', ) ); }
Does that look right? I'm trying to have a widget specific for pages but it is not working.
Does that have anything to do with this code I have in my functions file?
//* Add support for after entry widget add_theme_support( 'genesis-after-entry-widget-area' ); //* Relocate after entry widget remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' ); add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 );
Also, posts have the after page widget working just fine.
Frank
MemberHi, for some reason this is not working anymore.
The new widget area does appear in the backend, but all widgets inside it do not appear in pages. Can anyone say how to fix this in the latest version of the theme?
Thanks in advance!
Frank
MemberDuh! You're right. It's ok now.
Thanks a lot Christoph 🙂
Frank
MemberHello Christoph,
Thanks for your reply but it seems the post may refer to a prior version of the theme or maybe I'm doing something wrong, because using method one, I get this error:
Fatal error: Cannot redeclare agency_enqueue_backstretch_scripts() (previously declared in /wp-content/themes/agency-pro/functions.php:46) in /wp-content/themes/agency-pro/front-page.php on line 108
And I'm not sure where the code from method 2 should be placed in the funstions.php file. I believe this second way to do it is best, so I would appreciate if you could explain it for the current version of the theme.
Thanks!
Frank
MemberThanks Chinmoy, I was wondering how to do this, regards.
Frank
MemberNope 🙁 The SP support team told me to come here and ask, but as you see, there is no answer yet to the question.
Can anyone tell us how to have the background image in the Agency pro theme to appear _only_ in the homepage?
Frank
MemberHej Henrik,
I like how your site looks. I really appreciate whitespace and the color you picked make it easy to see links and text. Right now there are some header images not appearing correctly in my browser, like in your "About" page, but I guess is part of the redesign.
What I would add from a more traditional perspective, is an explicit "Services" page, so that people can easily see what you offer, maybe your rates and other useful information. Hope this helps.
P.D. Just a few months ago I spent a few days in Stockholm while traveling to Oslo, and loved the city. Pelikan's meat balls were great too 😉
Cheers!
January 30, 2013 at 12:36 am in reply to: Balance Theme: display featured left & right widgets sitewide #16336Frank
MemberNeat & Plain indeed! That was the problem, and now it is solved.
Thanks a lot Marco 🙂
January 29, 2013 at 11:07 am in reply to: Balance Theme: display featured left & right widgets sitewide #16014Frank
MemberHello and thanks a lot everyone 🙂
@ cdils - commas are ok, but thanks; @ David - That's the only hook to genesis_after_content but thanks for pointing that out. Please look at the entire file to see if you can spot something else...
@ surefirewebserv, @ Marco - Yep, I also believe the problem is in the syntax elsewhere in the functions.php file, so as you suggest Marco, I'm copying the code in here: http://pastie.org/5940942
Thanks again
January 25, 2013 at 7:12 pm in reply to: Balance Theme: display featured left & right widgets sitewide #14923Frank
MemberHello anybody?
Any help will be greatly appreciated
January 24, 2013 at 1:53 pm in reply to: Balance Theme: display featured left & right widgets sitewide #14381Frank
MemberNope! Still having problems here.
I've deleted the conditionals, added the closing curly brace and also corrected the hook where I want the widget to appear, but when pasting it to my functions.php file, it still causes the same 500 Error.
This is the latest code...
http://pastie.org/5850228Thanks for all your help!
January 24, 2013 at 11:39 am in reply to: Balance Theme: display featured left & right widgets sitewide #14341Frank
MemberAfter looking at the original code, but trying to display it in the entire site, I came with this code
http://pastie.org/5849119
...but it is causing a Error 500 (Internal Server Error).I know my syntax is wrong, although I can't tell where/why.
Can you check it out and help me correct it?
January 24, 2013 at 11:02 am in reply to: Balance Theme: display featured left & right widgets sitewide #14334Frank
MemberUnderstood. I tried to paste the code in my functions.php file but a syntax error appeared, as I don't really know the language.
Can you tell me what the code should look like following this new page:
http://pastie.org/private/vqblajaqfafxj3rl8e6k0gI pasted exactly like this and the error appeared.
1. What do I need to change to this code to work?
2. Will this code make both widgets to appear in the entire site?January 24, 2013 at 1:15 am in reply to: Balance Theme: display featured left & right widgets sitewide #14256Frank
MemberThis may be easier to read: http://pastie.org/private/vefkvflxxxrxwfym1z3ja
Regards
January 24, 2013 at 1:12 am in reply to: Balance Theme: display featured left & right widgets sitewide #14254Frank
MemberThanks Sozo,
I'm using front-page.php instead and I can't get the code to work yet. Can you please tell me what to change in here to have both widgets to appear sitewide?
This is the current code:
<?phpadd_action( 'genesis_meta', 'balance_home_genesis_meta' );
/**
* Add widget support for homepage.
*
*/
function balance_home_genesis_meta() {if ( is_active_sidebar( 'home-featured-left' ) || is_active_sidebar( 'home-featured-right' ) ) {
add_action( 'genesis_after_header', 'balance_home_loop_helper' );
}
}/**
* Display widget content for home featured sections.
*
*/
function balance_home_loop_helper() {if ( is_active_sidebar( 'home-featured-left' ) || is_active_sidebar( 'home-featured-right' ) ) {
echo '';
echo '';
dynamic_sidebar( 'home-featured-left' );
echo '';echo '';
dynamic_sidebar( 'home-featured-right' );
echo '';echo '';
}
}
genesis();
Regards
Frank
MemberYep, that was it Jen! 😀
Have a great day and thanks again for all your valuable help.
Frank
MemberHello Jen,
I finally managed to have the widget as I want it, thanks a lot for your help 🙂
For those looking to add a widget area to pages and archives, this is the final code I'm now using:
http://pastie.org/5674365As the widget still appears in all pages and the homepage, I'm using the "Conditional widgets" plugin to delete it from more specific places.
Frank
MemberHello? Can anybody help me?
With the code above I cannot have new widgets for both archives and pages yet.
Thanks in advance.
Frank
MemberAlso, every time I post something, the next page is a 404 error 🙁
-
AuthorPosts