Blog page is not showing properly
It’s in your css: body.blog article .entry-summary { position: absolute; body.blog article .entry-header { position: absolute; change it to relative.
It’s in your css: body.blog article .entry-summary { position: absolute; body.blog article .entry-header { position: absolute; change it to relative.
If you look at the Greyzed homepage you’ll see that it is a theme which is no longer under active development. I wouldn’t recommend this as you might not be able to get the most out of your WordPress site if your theme is out of date. That being said, if you don’t have the … Read more
Custom header shows two or three or more images
Use the ‘theme_location’ argument in header-anesthesia.php: wp_nav_menu( array( ‘theme_location’ => ‘anesthesia-menu’ ) ); WordPress will look for a menu assigned to this location now and pick that instead of the default menu.
global $post; $header_meta = get_post_meta($post->ID, ‘page-header-meta’, true); if( isset( $header_meta ) ) { echo ‘<h1>’ . $header_meta . ‘</h1>’; } else { echo ‘<h1>Knowledgebase</h1>’; } What this portion of code does is it checks the ‘page-header-meta’ value according to the page being displayed. IF your parent page has the metavalue set then the header will … Read more
You could use a template. You just have to copy the file header.php and call the new file with the slug of the page testimonials. It would require 2 new files : header-testimonials.php and front-page.php. then you can call your custom header with get_header(‘testimonials’); See the template hierarchy. Just be sure Testimonials is your front … Read more
I think the paths to your images specified in custom-header.php aren’t correct. You can use home_url() to specify this path if necessary, eg
You are probably calling it too early and the context for the current post is not filled yet. get_author_posts_url() accepts author’s ID as first argument, You probably need to retrieve and pass that to it, similar to how you retrieve the info for following call.
I use something like this in my header.php: <title> <?php if(is_front_page()) echo “Front Page Title”; else if(is_404()) echo “Page Not Found”; else the_title(); echo ‘ | ‘.get_bloginfo(‘name’); ?> </title> Check out Conditional Tags for more information. As a Function() : functions.php function setTitle(){ global $post; $title = get_the_title(); $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), … Read more
This code adds theme support for custom headers which adds a new page under Appearance in the wp dashboard. function themes_custom_header_setup() { add_theme_support( ‘custom-header’, $defaults, array( ‘default-text-color’ => ‘fff’, ‘width’ => 1260, ‘height’ => 240, ‘flex-height’ => true, ‘wp-head-callback’ => ‘themes_header_style’, ‘admin-head-callback’ => ‘themes_admin_header_style’, ‘admin-preview-callback’ => ‘themes_admin_header_image’, ) ) ); } add_action( ‘after_setup_theme’, ‘themes_custom_header_setup’ ); … Read more