Separate header for static home page and posts page
You don’t specify a path in get_header(), but rather a name. So for example: get_header( ‘home’ ); This will load header-home.php from the main theme directory.
You don’t specify a path in get_header(), but rather a name. So for example: get_header( ‘home’ ); This will load header-home.php from the main theme directory.
With the use of bootstrap (which u use) this is fairly simple. You can just do like this = <div class=”container”> <div class=”row”> <div class=”site-branding”>logo 1</div> <div class=”secondLogo”>logo 2</div> </div> </div> *menu goes here* first div you give : .site-branding { float: left; margin-bottom: -30px; width: 110px; } Second div : .secondLogo { float: right; … Read more
It is usually because there are spaces, new lines, or other stuff before an opening <?php tag or after a closing ?> tag, typically in wp-config.php or any of your theme or plugin files. Please check your theme and remove white space from top and bottom of your files.
MY first guess is to look at the functions.php referenced in the error message for any whitespace (space character) at the top of the file. Hard to find, but extra space characters output before any output will cause that error. I always make sure that the <?php is at the very very top, and never … Read more
You are looking at the wrong element, it is #site-navigation that has the box shadow (and a white background, which also is a problem), so the following worked for me #site-navigation { box-shadow: none; background-color: #fdd4ce; } A vendor prefix should not be necessary.
I was spelling wrong statement. This worked fine for me <?php if (is_page(’80’) ) { echo get_the_title();}?> thanks
Support for resource hints in WordPress is done through rel attribute of <link> elements whithin the HTML docuemnt, not with HTTP/2 server push (which uses Link headers in the HTTP response). You can use wp_resource_hints filter to add the URLs you need the prefetch like this: add_filter( ‘wp_resource_hints’, ‘cyb_resource_hints’, 10, 2 ); function cyb_resource_hints( $urls, … Read more
You need to change the code that currently displays that header, so that it doesn’t display the default title when it’s on this taxonomy. You can detect if you are on a taxonomy page with the is_tax() function, and then you could do something like this: $term_array = get_term_by( ‘slug’, get_query_var( ‘term’ ), ‘materia’ ); … Read more
Looks like your missing the / before the close on profile Try this <link rel=”profile” href=”https://gmpg.org/xfn/11″/>
You simply enqueue your stylesheet using the get_stylesheet_uri() function my_scripts() { // enqueue style wp_enqueue_style(‘name-of-my-script’, ‘https://cloud.typography.com/6718632/6718632/css/fonts.css’); } add_action(‘wp_enqueue_scripts’, ‘my_scripts’);