• dpuk44

    (@dpuk44)


    Hey this is my first post. OK so I have this site and it has a portfolio page. The header image on the main page is different to the header image on the individual portfolio pages. How can I get the sub portfolio pages to have the same header image as the main portfolio page?

    Main page
    https://nurdit.com/rachelanderson/?page_id=148

    Sub Pages
    https://nurdit.com/rachelanderson/?portfolio=aeropress-branding-and-print-design

    header.php

    <body id="index" <?php body_class(); ?>>
    
        <!-- wrapper -->
        <div id="wrapper">
    
            <!-- setup vars -->
            <?php
                $featured_image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
                $header = get_option( 'refinery_header' );
            ?>
            <!-- /setup vars -->
    
            <!-- header -->
            <?php if ( $featured_image || $header['image'] ) : ?>
                <header id="header" role="header">
    
                    <!-- custom header -->
                    <?php if ( $featured_image && ! is_single() && ! is_home() && ! is_archive() && ! is_search() ) : ?>
                        <div id="header_image" style="background: url(<?php echo $featured_image[0]; ?>) top center no-repeat;"></div>
                    <?php else : ?>
                        <div id="header_image" style="background: url(<?php echo $header['image']; ?>) top center no-repeat;"></div>
                    <?php endif; ?>
                    <!-- /custom header -->

Viewing 7 replies - 1 through 7 (of 7 total)
  • CrouchingBruin

    (@crouchingbruin)

    You should post your question on the support page for the Refinery theme.

    Thread Starter dpuk44

    (@dpuk44)

    I already did but no answer, hence joining this forum

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    That’s not a theme that’s supported in these forums, commercial products are not supported here.

    It’s partly because the source code is not available (that’s not an invitation to post that code here BTW) and what you are asking requires that access. The author’s site really is your best option.

    Thread Starter dpuk44

    (@dpuk44)

    great

    Tareq

    (@worthingtech)

    If you paid $40 for a theme that you can’t get support for, give envato a shout, they won’t be able to help you with the theme but will be able to contact the developer in case they’ve overlooked your support request.

    Thread Starter dpuk44

    (@dpuk44)

    cheers

    Thread Starter dpuk44

    (@dpuk44)

    Just in case anyone is looking for the answer I worked it out. Peace

    <!-- custom header -->
                    <?php if ( $featured_image && ! is_single() && ! is_home() && ! is_archive() && ! is_search() ) : ?>
                        <div id="header_image" style="background: url(<?php echo $featured_image[0]; ?>) top center no-repeat;"></div>
    
                    <?php elseif ( 'portfolio' == get_post_type() ) : ?>
                       <div id="header_image" style="background: url(wp-content/uploads/2013/10/bokeh3.jpg) top center no-repeat;"></div>               
    
                   <?php else : ?>
                        <div id="header_image" style="background: url(<?php echo $header['image']; ?>) top center no-repeat;"></div>
                    <?php endif; ?>
                    <!-- /custom header -->
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change image header in theme help’ is closed to new replies.