Viewing 7 replies - 1 through 7 (of 7 total)
  • Try this:

    add_action('__before_loop', 'my_blog_image');
    function my_blog_image(){
        global $wp_query;
        if ( $wp_query->is_posts_page )
            echo '<img width="870" height="180" alt="About Us Banner" src="https://www.seattlemetalsguild.org/wp-content/uploads/2012/01/About-Us-Banner.jpg" class="alignnone wp-image-2388 size-full">';
    }

    I used one of your image, of course change the filename.

    Forgot to say: that code should be added in your child-theme functions.php

    Thread Starter starlinggirl

    (@starlinggirl)

    If I keep editing the child-theme functions.php successfully like this I am going to freak myself out! ?? Thank you!!!

    You’re welcome ??
    OT:
    Anyway, as I said in another topic, you should disable the slide centering feature:
    https://www.ads-software.com/support/topic/slider-page-link-not-working?replies=9#post-5644075

    Thread Starter starlinggirl

    (@starlinggirl)

    Why again? I like it centered and it seems to be functioning perfectly on all platforms. Did you notice an issue?

    Yes, atm, it doesn’t work when you wrap the image in a <a> tag which is what you did to link the whole slide to a post/page. Basically at the moment it doesn’t center anything, the only thing that it does now is displaying the image as block (through css), which will make each slide immune to the line-height property. This, without the centering properly working, will just move up the image at the top of the container, which is just the opposite of “centering”. ??

    Thread Starter starlinggirl

    (@starlinggirl)

    Got it and turned it off! Thanks again!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add an image to the blog page’ is closed to new replies.