The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
228 views

how to remove Genericons Helper CSS from twentyfourteen theme

I'd like to remove the genericons-css styles loaded by default into twentyfourteen theme. <link rel='stylesheet' id='genericons-css' ...
0
votes
0answers
10 views

Meta description ellipsis [duplicate]

I have a function that puts a meta description in my theme's <head>. It works well but I have a small issue. It just cuts off words in the description once it reaches the 160 character limit. I ...
0
votes
4answers
292 views

remove meta robots tag from wp_head

I am in need to remove just this line from wp_head but can't find the right hook to use it with remove_action(). <meta name=robots content="noindex,follow"/> Basically what I want to achieve ...
0
votes
1answer
431 views

Add javascript to wp_head with call to plugin options?

I am trying to write a plugin in wordpress and have been doing it in stages, I understand how to add javascript to the wp_head however adding multiple function calls to the plugins options is ...
0
votes
1answer
53 views

edit title-tag in wp_head with yoast seo

I want to manipulate the html-title tag. so < title > these not the content of the title-tag! I use child-themes and it's inevitable, because the template have to be easy to update. So I have to ...
0
votes
6answers
2k views

Add code into <head> on a per page/post basis

Is there plugin (or an easyish way) to add code to the <head> section on a per page/post basis? I have a multilingual website and I need to implement the rel="alternate" hreflang markup, so ...
0
votes
1answer
48 views

Removing action from template class

I'd like to replace an action in a theme with my own version in a child. In this case, the theme hooks into wp_head to add it's own links. My own functions.php resides in the child theme and looks ...
0
votes
2answers
26 views

Is this a bad approach to add conditional comments to wp_head?

Why people say this is a bad approach to add conditional comments to wp_head? For example: function add_ie_html5_shim () { echo '<!--[if lt IE 9]>'; echo '<script ...
3
votes
2answers
757 views

How to add stylesheets only to pages with specific shortcode?

I'm running a function on pages where the shortcode [make-me-a-map] is used. It enqueues javascript to the page and makes a map. That part works fine (woot!) but I'm having trouble with adding the ...
0
votes
0answers
13 views

wp_head rel=next and rel=prev on certain pages only

I'm trying to hook the wp_head() to add the rel=prev and rel=next only in certain pages, but I'm not sure this can be done. I was expecting the do_action to be able to help me on this, but apparently ...
1
vote
0answers
39 views

How to modify default controls in Wordpress theme customizer

I'm trying modify the default control in the wordpress theme customizer specifically the action for the close button. By default clicking it will make you go back to the themes page, but I want it to ...
0
votes
1answer
32 views

jQuery does not appear to be enqueued on static homepage

I have been searching why, but I am clueless, I cannot figure out what is happening... jQuery does not appear to be enqueued on static homepage (I am not used to work with static homepages). On ...
1
vote
1answer
135 views

Filter out some plugin action in wp head / wp_footer

I am using a plugin called "syntaxhighlighter". I know not to ask for plugin specific questions but rather how to filter out action added to the wp_head / wp_footer conditionally... This is a ...
0
votes
1answer
28 views

How to find which plugin is outputting Open Graph tags to <head>

After getting an error the Facebook debugger about duplicate og:url tags, I'm trying to find which plugin is outputting the second set of Open Graph tags to my head section. I've tried deactivating ...
-3
votes
2answers
296 views

Why does wp_enqueue_script ignore my 'wp_head' hook?

I would like css_head_scripts and js_head_scripts to be appended to wp-head but Wordpress completely ignores it? Am I missing something? function css_head_scripts() { wp_enqueue_style( ...
0
votes
1answer
18 views

Is it possible to add post specific info in head of worpress post for OG use

Im trying to implement this OG features on my site. http://www.jwplayer.com/blog/publish-your-videos-to-facebook-with-a-jw-player/ Is it possible to get post title, thumbnail url, and place it in the ...
0
votes
3answers
209 views

Manipulating wp_head content

I'd like to know if it is possible for me to manipulate the output of wp_head()? Right now I'm using the Yoast SEO plugin to add some social tags into my posts (og:*). Now this site is an remake of ...
0
votes
1answer
80 views

Proper after_setup_theme and wp_head cleanup

Im trying to clean up code in my theme a little bit, remove some of the code that is not used and basically do things the right way, to decrease load time etc. Currently I have this code: ...
0
votes
1answer
54 views

How To Make Sure That My Action Hook Executes Last

How can I make sure that my_function action hook on 'wp_head' is executing last? One hack, that I'm using, is to give 999999 (a big number) as the third argument. But maybe some other hook on ...
0
votes
1answer
57 views

wp_head hook content showing up at top of RSS feed

The RSS feed for a site I maintain recently stopped working. I did a little investigating and found that the wp_head hook contents of several plugins is getting injected at the top of the page, ...
5
votes
1answer
679 views

Multi-page posts do not get indexed by Google due to canonical URLs

I've just noticed that on my paginated posts, only the main page gets indexed in Google. The paginated posts "post-title/2" and "post-title/3" for example, do not get indexed. On closer inspection, ...
0
votes
3answers
5k views

wp_head() remove redundant scripts?

hey guys, quick question. I'm using jquery for my current project (the latest release). A few plugins I'm using are using jquery as well and they are inserted through wp_head(). Since I want my ...
0
votes
3answers
737 views

add action wp_head not working

I am trying to add some code to the head (namely a block of tracking script) via a plugin I am making. The plugin has an interface where the user enters some details which are then added to the ...
0
votes
4answers
131 views

Function to echo (or display?) wordpress tags in the head section

I can't figure this out but I'm trying to echo the post Tags of the post in the <head> section. This code resides in the <head> section of the site. Basically I want the post tags to ...
0
votes
2answers
616 views

How can I make new .css file in child theme override styles in child theme's style.css

I want to make a separate responsive.css file in my child theme but having trouble making the media queries override the styles in the child theme's default style.css. I've tried putting <link ...
0
votes
1answer
58 views

Unable to apply selective loading

I wanted to get rid of unnecessary calls in my header. I would like a plugin 'wizylike' to load only on 'posts', nowhere else ( archives, pages etc.). I have taken a hint from this thread on how to ...
0
votes
0answers
63 views

why php tag is not working if i store and show it in wp_head?

hi i used wp_head a couple of times.I echoed some values it works like below function test() { echo "hello am visible"; } add_action('wp_head','test'); but if i store a php code in db and retrieve ...
0
votes
0answers
53 views

Wordpress doesn't generate rel=prev & rel=next

I am developing a Wordpress theme from scratch and I've been using previous_post_link() & next_post_link() quite often and never had any trouble using them. Until now.. So what I'm trying to ...
0
votes
1answer
155 views

Background of default template showing instead of the background of custom page template

Plugins were not working for my custom page template, found out that I needed to put WP_head() and WP_footer(), so did that and the plugins started to work. But now the background changed to that of ...
0
votes
0answers
45 views

Ajax call & dynamic wp_head

My problem is just how to handle the head section when using ajax templates. My responsive template loads the right page-template with ajax according to screen.width. If window.width < 1080px ...
1
vote
2answers
510 views

Indenting (tabbing) WP_head

Right now all the stuff that gets included in wp_head are left justified all the way in the code view. Whereas all my other code that is around the wp_head is indented (tabbed) two times. Is it ...
-2
votes
1answer
103 views

Use Wordpress Built In Jquery

I see that on every page Wordpress is loading in jquery, how do I go about using that jquery as it keeps telling me that it doesn't recognize $ or $noConflict(); - I'm trying to add some jquery under ...
0
votes
1answer
1k views

How do I find the code executed when wp_head() is called?

I am working on editing the header.php file and I am a bit confused. I am editing the header.php file and I see a call in it to wp_head(); I know that it calls a "callback function" with something ...
9
votes
2answers
6k views

How to Link External jQuery/Javascript files with WordPress

So I'm using Starkers to base my next WP theme on and I've run into a small issue, I was including my own version of jQuery in the header.php file but when inspecting my site using Firebug I noticed ...
1
vote
2answers
641 views

wp_head() not including styles and javascripts after a template redirect

I am using the template_redirect action to redirect a user to a custom template which has no header, sidebar or footer (the intent is for it to be in an iframe as a dialog box). After I done the ...
0
votes
1answer
2k views

add_action and wp_head not display content in head section

I have a big problem. In a Wordpress page I've a function that generate og meta tags. I want to "append" that generated meta in the head section. So, I write this code: add_action('wp_head', ...
1
vote
2answers
4k views

How do I edit wp_head and/or functions.php to remove rss-feed which isnt used and dont validate?

When using w3.org's validation tool Unicorn I get the following error/warning: URI: http://energyshop.se/hem/feed/ This feed does not validate. After looking into my source its there crystal clear ...
1
vote
1answer
770 views

wp_head() - list hooked actions with priorities?

I'd like to add something to wp_head() but I'm aiming precise location (like after style.css but before rtl.css and before my other custom script). I'm wondering if it's possible to list everything ...
4
votes
3answers
511 views

How can I reduce the amount of files loaded/included per plugin?

I have a Wordpress site that uses several plugins, namely 8. Most of these plugins include a lot of their own JS and CSS files, some even include so much as 3 separate CSS files. One can imagine that ...
6
votes
7answers
4k views

Why is wp_head() creating a top margin at the top of my theme header?

I am creating a custom theme, and elements behave as they should but when I place the <?php wp_head() ?> tag I get a top margin, at the top of my theme header. When I remove the <?php ...
0
votes
1answer
58 views

output specific location in the header

Is there a way in which I can output some code in the header and choose it's location? some where like wp function add_admin_menu (where you can choose the placement).
0
votes
2answers
2k views

How can I modify what is being output in wp_head, whether by a theme or Wordpress in general?

I've been working on performance of my site using YSLOW, and noticed that Wordpress it outputting things in my document head that I know I don't need. For example, I'm already calling jQuery 1.9 from ...
0
votes
0answers
212 views

Why won't the action hook wp_head won't accept parameters?

I'm working on a plugin that adds scripting to the head using add_action('wp_head',..); I have to pass a variable to the function to get my desired result. To test this I'm simple "echoing" out the ...
0
votes
2answers
101 views

Display Something in the Header After All Styles are Loaded

I'd like to include a functionality in a theme that will overwrite styles from previously included CSS files. For this purpose, I need to be able to display a <style> in the header after ALL ...
0
votes
1answer
199 views

Can't find where to modify <html> attrbitutes

I am trying to create a simple function that adds or edits data in the <html>. Basically, before the server response is sent, I want to find where this piece of html is written at the top level ...
10
votes
2answers
647 views

WordPress Code Flow

I was interested in checking out how the WordPress code flow works... When I googled it, ( probably with the wrong keywrods), all I ended up was this; ...
-1
votes
1answer
63 views

new to javascript - using in <head> instead of functions.php, not loading correctly

Live site. I've decided to incorporate javascript in my new theme; this is my first time doing so and have pieced together what I've down with help of blog posts and forums. I have the javascript ...
1
vote
2answers
151 views

CSS from textarea in options page to frontend what to do

I have a textarea for small css enhancements on the plugins page i output them directly to the head. My Question is how to sanitize the CSS i have validation function registered for the options with ...
-1
votes
1answer
241 views

How can a 'scripts' directory be hooked into wp_head();?

So I'm trying to get my head round <?php wp_head(); ?>. I understand that it loads in the stuff needed for plugins etc., but I'm using a theme that seems to be using it to load in scripts for ...
0
votes
1answer
274 views

Would there be anything stopping me from removing both wp_head and wp_footer?

Some plugins rely on either wp_head or wp_footer or both to introduce their own stylesheets and JavaScript. Those scripts take time to load and slow down my website. Therefore, I would like manually ...