WordPress.org

Ready to get started?Download WordPress

Forums

Need expert help (3 posts)

  1. alanrogers2
    Member
    Posted 3 years ago #

    I need help with a couple of issues. First, I need help uploading a bit of javascript to a shopperpress site. I can not isolate the home page to insert the code. If you can help me or talk me through it I will pay $$$
    I need help now

  2. LachlanM
    Member
    Posted 3 years ago #

    Hi,

    This tip is free and may help you.

    IF THIS IS AN IN-PAGE SCRIPT, e.g. ADVERT
    Your theme may have a home.php, if it does you can add your javascript directly to this and it will only affect the home page.
    If it doesn't have a home.php you can add your script to index.php in the following way and it will only appear on the home page:

    <?php if ( is_home() ) { ?>
    YOUR SCRIPT HERE
    <?php } ?>

    IF THIS IS A SCRIPT THAT NEEDS TO GO IN THE HEADER
    Edit header.php and place the script before the closing head tag using the same code above, which will cause it to only load in the header when the user is on your home page.

    I usually edit my site files on my PC and then upload via FTP, but you can also do this directly in the WP admin area.
    Navigate to Appearance > Editor and select the header.php, home.php or the index.php depending on the above info.

    Hope this helps.

  3. alchymyth
    Forum Moderator
    Posted 3 years ago #

    if you want to hire someone:
    http://jobs.wordpress.net/

Topic Closed

This topic has been closed to new replies.

About this Topic