Articles of custom header

How to remove WP Title Tag?

I have addded a custom title tag for a custom post type in header.php like follows if(is_singular( ‘news’ )){ global $wp_query; $postid = $wp_query->post->ID; echo ‘<title>’. get_the_title() .’ of ‘. strip_tags(get_the_term_list( get_the_ID(), ‘genre’, ”, ‘ ‘, ” )) .’ read online</title>’; } This code works fine but I just do not know how to remove […]

Where is the stylesheet code?

I want to change some values in this code on the header of my site: <link rel=’stylesheet’ id=’style-css’ href=’localhost/wp-content/themes/xxxx/style.css’ type=’text/css’ media=’all’ /> I can’t find this line in any of the source code, or the database. Where is this code?

Change the location of add_theme_support( 'custom-header' ) in the customizer

I’m using add_theme_support( ‘custom-header’ ) to upload images for an image slider. The slider also has other settings in the customizer (duration, fade, overlay color, etc). Because there are multiple settings all related to the slider, I’d like to group all of them in the same Customizer panel but I don’t see a way to […]

where to change text for header?

on the twentyfifteen theme. When I click on the customizer to set my header, There is some text there that says. “While you can crop images to your liking after clicking Add new image, your theme recommends a header size of 954 × 1300 pixels.” I need to change the 954 x 1300 but I […]

Adding other links on header than LinkedIn, Facebook, Youtube etc

As you can see on the header of my website I have several link buttons to Youtube, Facebook etc… I changed the code a bit to add Soundcloud URL, and that worked. I get the Soundcloud logo on top with the link. Unfortunately this didn’t work for StackExchange. Is there any way I can create […]

get_header() in backend – but keep JavaScript and CSS files

I replaced the header and footer in the backend with those from the frontend by the following code: /* add header to backend */ function header_backend() { get_header(); } add_filter(‘in_admin_header’, ‘header_backend’); /* add footer to backend */ function footer_backend() { get_footer(); } add_filter(‘admin_footer_text’, ‘footer_backend’); But this obviously deactivated or removed the *.js and *.css files […]

Include different scripts and styles for two separate custom headers?

I would like to have 2 different header files that I can use depending on which section of the website I am on. For example, display custom header#1 if not logged in, and display custom header#2 if logged in. I want to enqueue different scripts and styles on each of the header files using functions.php. […]

Display different header images based on current page

I want to display, based on the current page another header image. Short example: Home -> Image A PageId 1,2,3,4 -> Image B (2,3,4 are childs of page 1) PageId 5, 6 -> Image C … I tried to edit the header.php of my theme, because there is the coding block which displays the header […]

Get a sidebar at the top of the page

I want to get a sidebar ( get_sidebar( ‘mySidebar’ ) ) at the top of the page, so I can’t call it after get_header() in the content template. How could I do it?

WordPress add script with custom type (x-jquery-tmpl)

I would like to a add the following script into WordPress: <script type=”text/x-jquery-tmpl”> … </script> but using: wp_add_inline_script( ‘my-script’, ‘…’ ); will give me: <script type=”text/javascript”> … </script> Must I edit header.php for any type of script that is not javascript?