Forum Replies Created
-
AuthorPosts
-
cxp073Member
I'm not sure if I am not explaining this right..
The text "This text has been added using the genesis_after_header_hook" is showing it where I want it to be.
However, I don't want it to say "This text has been added using the genesis_after_header_hook".
I want it to display the widget contents (the individual widgets) that I have added to the "after homepage widget area".
cxp073MemberHi Brad
I did that.
It shows the widget in appearance > widgets
What I'm trying to do is show the widget where "This text has been added using the genesis_after_header_hook" now appears...
cxp073MemberHey Brad
I've fiddled around with some success.
What I have in the functions file is the following:
//* Register after homepage widget area
genesis_register_sidebar( array(
'id' => 'after-homepage',
'name' => __( 'After Home Page', 'themename' ),
'description' => __( 'This is a widget area that can be placed after the home page', 'themename' ),
) );//* Hook after homepage widget area
add_action( 'genesis_after_content', 'wpsites_after_header' );
function wpsites_after_header() {
echo'This text has been added using the genesis_after_header_hook';
}This is, unsurprisingly, showing "This text has been added using the genesis_after_header_hook" where I want it to show on the site.
What it's not showing is the widget's that I've added in Appearance > Widgets.
I suppose this is because it is being told to echo the text; not the widget 'widgets'.
How can I do this?
Thanks for all your help!
P.S. I am able to put bits and peices together, but if I want to learn more about the php written above, and what it actually means, what sources should I use?
cxp073MemberWhere it says 'themename' in the add widget area tutorial, do I actually need to change this to 'wintersong'?
cxp073MemberApologies Brad
What you said was clear, But like I said I'm but of a beginner.
Let me read through the tutorials again and give it a go on my test site.
I'll get back to ya!
Best
Cameron
cxp073MemberHi Brad
Thanks for getting back to me.
That makes a little sense.. I checked the tutorial, and it seems like this is aimed at adding the widget after individual posts. I want this to display on the front page of my blog - under the "next page" button.
Sorry if I'm being daft, but as I said I'm a bit of a beginner.
Could you clarify what I need to do?
Thanks!
December 10, 2014 at 12:46 pm in reply to: How to make BBPress forum full width – magazine pro them #134209cxp073Memberbump
December 8, 2014 at 6:52 am in reply to: How to make BBPress forum full width – magazine pro them #133977cxp073MemberCan someone please give me a hand with this? Thanks again.
-
AuthorPosts