Support » Plugin: WP Header Images » No display of images

  • Resolved catwingz

    (@catwingz)


    This is just one of the pages on the current deva-dev site intended to launch under a different name over the weekend. I’ve used this plugin before but this is for a new site.

    At this point the plugin is installed and activated, the code snippet placed in the header via plugin and assigned an assortment of images to the pages. No images are showing.

    One odd thing is that prior to adding the plugin the page intended to display posts had an ugly black banner with “Archives” on the banner. After adding the plugin this disappeared.

    How can I get the images to show? Am I missing something?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • @catwingz please make sure you placed the code snippet inside <body> tag like this.

    You can see the implementation here.

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @catwingz please use the following shortcode instead

    [WP_HEADER_IMAGES]

    You were using the PHP based shortcode which needs to be in a file instead of your text editor.

    <?php do_action('apply_header_images'); ?>

    Please check the screenshot attached, it was not working because it has to be in the header.php instead of any text editor.

    Screenshot: https://prnt.sc/vdp9nb

    @ibulbworksupport thank you for the quick response.

    Belated thanks to you both. Back from a sidetrack.
    I switched from using a snippet plugin (this is a text editor??) to placing the code directly into the header.php and have found that I can get images to show at the top of the page above everything including the navigation (not where the banner belongs) or I get parse error messages. Multiple locations have been tried. For the moment I have removed the code entirely. The site is still hidden but now located here

    The header relies heavily on hooks and I am beginning to wonder if this is the problem. Is there a way around this? Thank you.

    This is the header.php:

    <?php
    /**
    * The default template for displaying header
    *
    * @package Catch Themes
    * @subpackage Clean Education
    * @since Clean Education 0.1
    */

    /**
    * clean_education_doctype hook
    *
    * @hooked clean_education_doctype – 10
    *
    */
    do_action( ‘clean_education_doctype’ );?>

    <head>
    <?php
    /**
    * clean_education_before_wp_head hook
    *
    * @hooked clean_education_head – 10
    *
    */
    do_action( ‘clean_education_before_wp_head’ );

    wp_head(); ?>

    </head>

    <body <?php body_class(); ?>>

    <?php do_action( ‘wp_body_open’ ); ?>

    <?php
    /**
    * clean_education_before_header hook
    *
    */
    do_action( ‘clean_education_before’ );

    /**
    * clean_education_header hook
    *
    * @hooked clean_education_page_start – 10
    * @hooked clean_education_header_start- 20
    * @hooked clean_education_mobile_header_nav_anchor – 30
    * @hooked clean_education_mobile_secondary_nav_anchor – 40
    * @hooked clean_education_site_branding – 50
    * @hooked clean_education_primary_menu – 60
    * @hooked clean_education_header_end – 100
    *
    */
    do_action( ‘clean_education_header’ );

    /**
    * clean_education_after_header hook
    *
    * @hooked clean_education_secondary_menu – 20
    * @hooked clean_education_add_breadcrumb – 40
    * @hooked clean_education_news_ticker_display (below menu) – 50
    * @hooked clean_education_featured_overall_image – 60
    */
    do_action( ‘clean_education_after_header’ );

    /**
    * clean_education_before_content hook
    *
    * @hooked clean_education_featured_slider – 10
    * @hooked clean_education_hero_content_display – 20
    * @hooked clean_education_featured_content_display (move featured content above homepage posts – default option) – 30
    * @hooked clean_education_promotion_headline – 40
    * @hooked clean_education_portfolio_display – 50
    * @hooked clean_education_courses_display (move courses above homepage posts – default option) – 60
    * @hooked clean_education_our_professors_display – 70
    * @hooked clean_education_news_display – 80
    * @hooked clean_education_testimonial_display – 100
    * @hooked clean_education_news_ticker_display (above content) – 110
    */
    do_action( ‘clean_education_before_content’ );

    /**
    * clean_education_content hook
    *
    * @hooked clean_education_content_start – 10
    * @hooked clean_education_add_breadcrumb – 20
    * @hooked clean_education_content_sidebar_wrap_start – 40
    *
    */
    do_action( ‘clean_education_content’ );

    Plugin Author Fahad Mahmood

    (@fahadmahmood)

    @catwingz in case you cannot edit hearder.php or you have no idea there which is the best place to insert shortcode, then I would suggest you to review the new featured added “DOM Position” under developers tab. You may reach us directly to get further support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.