• Hello folks,

    I’m trying to edit the php in my header to get banner ads to show up on my site. However, when I change the header php file in the editor of the admin area, the changes don’t save. Can anyone help me figure out how to save these changes?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Changes to any of the theme’s files will erase when the theme updates.
    Instead create a Child Theme and work within there.

    Thread Starter Kletsky

    (@kletsky)

    So any changes I try to make in the editor just flat out won’t work unless I create a child theme?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    No, changes you make in the theme’s files will effect the theme. What change are you trying to make?

    Thread Starter Kletsky

    (@kletsky)

    I’m trying to change the header to include 468X60 banner ads using this:

    </div>
    <div class=”header_ads”>
    <?php
    $pp_top_banner = get_option(‘pp_top_banner’);

    if(!empty($pp_top_banner))
    {
    echo stripslashes($pp_top_banner);
    }
    ?>
    </div>

    <br class=”clear”/>
    </div>

    So when I insert that using the editor, the changes don’t save and nothing happens on the live site.

    Thread Starter Kletsky

    (@kletsky)

    I’m not sure why it’s not saving or how to get it to save these changes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changes to header not saving’ is closed to new replies.