Forum Replies Created
-
in reply to: Featured image header on single blog post pages
Thank you. I understand what you are telling me and I have set up the default page header. However, adding a background image is not what I want. It produces unwanted results. See screenshot.
I want the image to appear above the heading text and not as a background, like it does on all pages. Like so.
in reply to: Featured image header on single blog post pagesThanks for the reply. I have my settings in Default Page Header with no background image. The header has a dark grey background and white text. The image shows above the dark grey bar from the featured image selected for each page.
I have Active page header selected for each blog post and the featured image does not appear above the dark grey bar.
Am I missing something?
For anyone that may need this answer, see below. I am not an expert in PHP, but it works.
<h1><?php
function is_post_type($type){
global $wp_query;
if($type == get_post_type($wp_query->post->ID)) return true;
return false;
}if ( is_singular(‘post’) ) { echo ‘Blog’; } else if ( is_singular(‘faqs’)) { echo ‘Law FAQ Library’;} else if (is_post_type(‘faqs’)) { echo ‘Law FAQ Library’; } else echo esc_html($title) ?></h1>
in reply to: Hooks for Using Visual Composer Mega FooterLet me rephrase my question as I am not asking for support for the third party plugin. My question is:
Does your theme support the hook for ‘wp_footer’? If not, is there another name that you call your hook?