Forum Replies Created
-
AuthorPosts
-
AnnamarieParticipant
Hmm.... I didn't see your answer until this AM. I tried that too. What's weird is that it did do it ONCE - long enough for me to format the CSS. There must be something conflicting with the function?
Just to be incredibly sure.. I'm putting this code in wp-content/themes/genesis-sample/functions.php. Right?
(yes I started building with the sample child theme)
And here is my code cut and pasted..//* coding to put permanent text at top of posts add_action( 'genesis_before_loop', 'introtext_before_posts' ); function introtext_before_posts() { if ( is_page( 'gentle-bytes' ) ) { echo '<div class="before-blog">"Gentle Bytes" offers you basic information about computers, tablets and smartphones in simple and clear terms. Gently. You will learn to gain control of your device and use it with pleasure. This is not for geeks. This blog and newsletter is for the generation that had a childhood and higher education with typewriters, card catalogs, and mimeograph machines. (Remember the smell of freshly printed mimeos?)</div>'; } }
Any further thoughts?
AnnamarieParticipantSpoke too soon. It worked once and now isn't . Sigh.
AnnamarieParticipantYeah! All fixed. Right the "O" was stupid. But I had tried '86' - did it have to be a three digit ID? You put the "add_action.." line above the function creation (if that's what you call it) was that important to getting it working? I'd always seen the other way (in Thesis)
thanks so much!
AnnamarieParticipantI tried Amanda's method and also the custom blog page method. None of them are displaying my text! I'm sure it has to do with properly identifying the page? But how?
AnnamarieParticipantI tried the direct hook method. (Since I don't need to change this text, I'm thinking.)
Something's not right as the text isn't displaying. I don't really know PHP but I've messed around in it before. I made the function "introtext_before_posts".. and am trying to call the page. I have the posts page set to "Gentle Bytes" (in Settings/Reading) .. my guess is that I've got the wrong call..? i've tried the following: posts, 86, gentle-bytes. I'm out of ideas. Can someone tell me what's wrong? here's the page: http://patientsympatheticcoaching.com/gentle-bytes/
Thanks for the help.
//*coding to put permanent text at top of posts*// function introtext_before_posts() { if ( is_page( '086' ) ) echo '<div class="before-blog">Gentle Bytes expresses my intent to offer you basic information about computers, tablets and smartphones in simple and clear terms. Gently. My hope is that you will learn so that you gain control of your device and can use it with pleasure. This is not for geeks. This blog and newsletter is for the generation that had a childhood and higher education with typewriters, card catalogs, and mimeograph machines. (Remember the smell of freshly printed mimeos?)</div>'; }; add_action('genesis_before_loop', 'introtext_before_posts');
-
AuthorPosts