WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Problem Adding/Saving Code to Header (11 posts)

  1. dailymishmash
    Member
    Posted 6 years ago #

    I am trying to add a Mister Linky to my blog post. I'm having a lot of trouble adding this to my header:

    <script type="text/javascript" src="http://www.blenza.com/linkies/header.js"></script>

    It is in the dashboard and my webshell, but when you look at my blog's source code it is not there:


    http://dailymishmash.com

    Any suggestions?

  2. iridiax
    Member
    Posted 6 years ago #

    Did you put the code in your theme's header.php?

  3. dailymishmash
    Member
    Posted 6 years ago #

    Yes, here is an excerpt of my saved header.php. The code is located in bold print:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    <head profile="http://gmpg.org/xfn/11">
    <script type="text/javascript" src="http://www.blenza.com/linkies/header.js"></script>

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

  4. iridiax
    Member
    Posted 6 years ago #

    However you are editing it isn't sticking, maybe due to permissions issues or security settings. I would try a different method. I use a code editor on my computer to edit the actual theme files and then FTP them to my site.

  5. dailymishmash
    Member
    Posted 6 years ago #

    Are you talking about filezilla?

  6. iridiax
    Member
    Posted 6 years ago #

    I have a Mac and use BBEdit to edit the code and Dreamweaver to FTP.

  7. dailymishmash
    Member
    Posted 6 years ago #

    Thanks for your help iridiax. I'm not sure how to go about doing this, but I appreciate you taking the time to answer.

    If anyone else has a suggestion, please let me know.

  8. iridiax
    Member
    Posted 6 years ago #

    I would use whatever FTP program works with your computer. My best guess is that your web permissions are not allowing you save your file edits.

  9. vachi
    Member
    Posted 6 years ago #

    maybe take the header.js and put it under your blog folder, like the same place your header file is

  10. dailymishmash
    Member
    Posted 6 years ago #

    Thanks to everyone's suggestions, I finally figured it out!! :)

  11. azarmig
    Member
    Posted 5 years ago #

    so what did you do?!!
    come on i have the same problem!

Topic Closed

This topic has been closed to new replies.

About this Topic