badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Text in the div main

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #54097
    Pierre
    Participant

    I want to make the text up in the main div but only in the home page, when change page image, the text does not have to appear.

    #54104

    Hi

    Sorry! Can you please clarify it one more time.
    We could not understand what you are trying to say?

    Thank you!

    #54107
    Pierre
    Participant

    This is the home page, above I put the text. But when I click a link and change the page, the text remains on the other pages of the site. Text must only be on the home page.
    This text I put in the header.php file

    [IMG]http://i65.tinypic.com/14jyiqp.png[/IMG]

    #54110

    Hi Pierre,

    header.php will call in each and every page in WordPress. So the code will be run in each and every pages you have.

    You have to add some conditions on the exact line in header.php as describe below:

    <?php 
    if ( is_front_page() || is_home() ) {
    	//your code goes here.
    } ?>

    Please replace the text //your code goes here. to your own code.

    Thank you!

    #54440
    josephmontiel608
    Participant

    Thanks!

    #54464

    Welcome @josephmontiel608 anytime. 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.