Skip to main content
10 events
when toggle format what by license comment
May 24, 2015 at 22:30 history edited birgire CC BY-SA 3.0
Added a new tag and removed the "Thanks" part since that's not usually included in the questions. You can revert this if you don't agree ;-)
May 24, 2015 at 22:10 vote accept Justin Munce
May 24, 2015 at 22:07 answer added birgire timeline score: 3
May 24, 2015 at 21:53 comment added birgire So it's just a single <p> tag, that's preventing you from adding the extra words above the line containing <?php the_content();?>?
May 24, 2015 at 21:50 comment added Justin Munce Oh, ok. I have "<article class="post page"> ... containers with widgets ... <div class="center-column"> <h2>Title</h2> ... div with widget ... <p>Text of article</p></div>
May 24, 2015 at 21:44 comment added birgire I'm just wondering what kind of HTML is coming from your the_content();. For example if you check the HTML source of your page the relevant HTML might be like: <article><h1>Hello World</h1><div class="entry"><p>This is my first post</p></div></article> but your desired output might be: <article><h1>Hello World</h1><div class="entry"><p>HERE IS SOME CUSTOM TEXT This is my first post</p></div></article>. This kind of information will help. Please update your question with any extra information, thanks.
May 24, 2015 at 21:23 comment added Justin Munce In my single page php layout, I call with <?php the_content(); ?> I'm not sure if this calls from the content.php or content-single.php but I can paste either one in here if you let me know that. I also don't really understand what you would like for "desired HTML?" Sorry, I've been learning code myself for the last month and don't know the communicative terms.
May 24, 2015 at 21:18 comment added birgire How does your PHP code look like? What's the generated HTML and what's the desired HTML?
May 24, 2015 at 21:13 review First posts
May 24, 2015 at 22:26
May 24, 2015 at 21:04 history asked Justin Munce CC BY-SA 3.0