• 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need expert help’ is closed to new replies.