Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 2nd Jan 2015, 08:54 AM   #1
Advanced Warrior
War Room Member
 
Dele's Avatar
 
Join Date: 2006
Posts: 732
Thanks: 138
Thanked 73 Times in 59 Posts
Blog Entries: 1
Default
Inserting Text/Content In Index.php (Wordpress)
Share on: 
fb share twitter share gplus share more share

Hi Warriors,

Happy New Year!

I previously had my own inserted content right within Main Index Template (index.php) of my Wordpress blog but i removed same sometime ago. I now want to re-insert some text but cannot recollect exactly where within the index.php code i should do that.

Btw i am quite aware of the necessity for only amending/updating child theme and not the cms template.

Can you please point me to exactly where i need to begin inserting the text?

Thanks

What Others Are Saying About This Top MLM Company | Get Brand New, Brand Name Products For Pennies @ New Penny Auctions | Play Online Game At Eager Zebra Games | The source through which i smile to the Bank daily with $$$ => Top Home Based Businesses
Dele is offline  
Unread 2nd Jan 2015, 10:02 AM   #2
Warrior Member
 
Join Date: 2014
Posts: 20
Thanks: 0
Thanked 6 Times in 6 Posts
Default
Re: Inserting Text/Content In Index.php (Wordpress)
Share on: 
fb share twitter share gplus share more share

Originally Posted by Dele View Post

Hi Warriors,

Happy New Year!

I previously had my own inserted content right within Main Index Template (index.php) of my Wordpress blog but i removed same sometime ago. I now want to re-insert some text but cannot recollect exactly where within the index.php code i should do that.

Btw i am quite aware of the necessity for only amending/updating child theme and not the cms template.

Can you please point me to exactly where i need to begin inserting the text?

Thanks
Hi,
Happy New Year!

It depends where you want to add the content. There are many files in a wp theme, normally there would be a header.php file you can add content there after opening body tag, that would be displayed all over the pages, provided that file is included in all the other theme files, and the next thing is you should know the place where you want to include the text.

I can provide more specific help if you can give me more details where you want and your site url.
Regards,
Raj
kumarraj is offline  
Unread 2nd Jan 2015, 02:16 PM   #3
Advanced Warrior
War Room Member
 
Dele's Avatar
 
Join Date: 2006
Posts: 732
Thanks: 138
Thanked 73 Times in 59 Posts
Blog Entries: 1
Default
Re: Inserting Text/Content In Index.php (Wordpress)
Share on: 
fb share twitter share gplus share more share

Thank you Raj.

I want the content in the Main Index Template (index.php) as that is where i had it before. I want it rendered on my site homepage after the dynamic content (blog posts).
My site url is Profitable Business Ideas - Ideas That Make Money Online

What Others Are Saying About This Top MLM Company | Get Brand New, Brand Name Products For Pennies @ New Penny Auctions | Play Online Game At Eager Zebra Games | The source through which i smile to the Bank daily with $$$ => Top Home Based Businesses
Dele is offline  
Unread 3rd Jan 2015, 12:24 AM   #4
Warrior Member
 
Join Date: 2014
Posts: 20
Thanks: 0
Thanked 6 Times in 6 Posts
Default
Re: Inserting Text/Content In Index.php (Wordpress)
Share on: 
fb share twitter share gplus share more share

I have checked your site and to add content after blog posts you need to find this

Code:
<div id="primary" class="hfeed">
and before that closing div tag you need to add the following code, this will ensure that your additional content is posted on the home page only, and to the position where you actually want it.

Code:
<?php if ( is_front_page() ){?>
add your content here
<?php }?>
Let me know if you require any other help.
Regards,
Raj
kumarraj is offline  
The Following User Says Thank You to kumarraj For This Useful Post:
Unread 3rd Jan 2015, 11:41 AM   #5
Advanced Warrior
War Room Member
 
Dele's Avatar
 
Join Date: 2006
Posts: 732
Thanks: 138
Thanked 73 Times in 59 Posts
Blog Entries: 1
Default
Re: Inserting Text/Content In Index.php (Wordpress)
Share on: 
fb share twitter share gplus share more share

Thank you so much Raj.
I have now been able to insert the content as desired.

What Others Are Saying About This Top MLM Company | Get Brand New, Brand Name Products For Pennies @ New Penny Auctions | Play Online Game At Eager Zebra Games | The source through which i smile to the Bank daily with $$$ => Top Home Based Businesses
Dele is offline  
Unread 5th Jan 2015, 01:01 AM   #6
Warrior Member
 
Join Date: 2014
Posts: 20
Thanks: 0
Thanked 6 Times in 6 Posts
Default
Re: Inserting Text/Content In Index.php (Wordpress)
Share on: 
fb share twitter share gplus share more share

Originally Posted by Dele View Post

Thank you so much Raj.
I have now been able to insert the content as desired.
You are welcome.
kumarraj is offline  
Closed Thread


Bookmarks

Tags
indexphp, inserting, text or content, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 06:03 PM.