Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1014417
    mclukens
    Participant

    Hello,

    I would like to add a custom banner/image to the top of my blog page: http://hfsc.wpengine.com/the-solution-blog/

    I’ve tried adding this code to the functions.php file of the X-Child Theme:

    function custom_banner() {
    if (is_home()) {
    echo ‘<div class=”custom-banner”>custom banner</div>’;
    }
    }
    add_action(‘x_before_view_renew__landmark-header’,’custom_banner’, 9999);

    I’ve tried adding this custom js:

    function($) {
    var html = ‘‘;
    $( html ).appendTo(‘.blog .x-header-landmark’);

    })(jQuery);(

    Neither of these worked. Please advise.

    Thank-you.

    #1014469
    Thai
    Moderator

    Hi There,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Authentication password(http://i.imgur.com/ad1apN7.png)
    – Link login to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1022287
    mclukens
    Participant

    I achieved the desired outcome by adding html to the head.

    #1022548
    Joao
    Moderator

    Great to hear it.

    Let us know if you need help with anything else.

    Thanks

    Joao

  • <script> jQuery(function($){ $("#no-reply-1014417 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>