Articles of headers

Insert Facebook button into header

I am trying to add a Facebook button to the center of my header image. I have tried adding a link to my header.php on different sections, but it either displays the button above or beneath the logo, instead of inside the image. Any suggestions on where I should insert it? Website: Image:

How to use the conditional homepage tag

I’m trying to display a video in the header of the homepage only but struggling to figure out the correct code. This is the code for the video tag, which seems to be working fine if ( is_home() ) { ?> <video id=”example_video_1″ class=”video-js vjs-default-skin” controls preload=”auto” width=”1278″ height=”720″ poster=”” data-setup='{“example_option”:true}’> <source src=”″ type=’video/mp4′ /> […]

Empty header tags

When I set the ‘posts for page’ option to a specific page, then that page gets an empty header and the page is not structured. The site has a customized theme of twenty eleven. Could someone point me into a direction of a possible solution? How it should be: right display NOTE: its not online […]

What is this HTTP_REFERRER “WordPress/4.1.2”

On our website we have huge traffic with same IP and referrer “WordPress/4.1.2;”. The log line looks like: – – [22/Apr/2015:17:28:15 +0200] “GET /wp-content/uploads/2015/04/randevouz.jpg HTTP/1.0” 200 791898 “-” “WordPress/4.1.2;” The IP and domain are real and I can see the website who doing it, but before block I want to know […]

Where are the contents of WP_Head

I’m building a theme based on underscores. In the header I’m finding some code for a margin-top but I can’t seem to find the source in order to get rid of it. I looked in functions hoping it was defined there, but I actually can’t find anything in the theme @media screen and (max-width: 782px) […]

Create Post Using Form on WP Dashboard

As always, I have unique situations and client requests. I am working on a custom dashboard widget that will include a form to register for an event. Once the form is submitted, it will generate a custom post type of invoice. Currently, I’m just playing with the basics to get things working. So here is […]

Include two headers

My website has only one header. I want to change it with that of WordPress, for example, because It has an address with a logo at the top and then menu bar. How can I add that template to mine?

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 […]

Fatal error: Call to undefined function get_header()

Hello WordPress Developers, I got this erros messages when I check my site like below When I visite that url, it give me this message Fatal error: Call to undefined function get_header() in /users/my-username/www/mysite-folder/wp-content/themes/twentyfifteen/index.php on line 17 You know, the errors messages shouldn’t give us like that, Am I right? And I googled for […]

How to add social follow button to header?

I’m using the theme “Awaken” and I need to add social follow button on the right side of the logo, just above the search box. Please see my website here. I have included the social button in the footer section with the help of widgets but is not available for header. Thanks!