Skip to main content

Questions tagged [head]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
93 views

how to edit/delete external css link in head

I've just recently updated my SSL certificate but now my site shows a mixed content warning: Mixed Content: The page at 'https://www.ecosaver.com/' was loaded over HTTPS, but requested an insecure ...
Levi's user avatar
  • 1
1 vote
3 answers
510 views

Add js file in two colums layout

I'm trying to add a sript for sidebar only where the sidabar appear. In my local.xml I added: <page_two_columns_left> <reference name="head"> <action method="addItem">&...
krybbio's user avatar
  • 1,258
1 vote
1 answer
326 views

equivalent class for Mage_Page_Block_Html_Head

what is the equivalent class for Mage_Page_Block_Html_Head in magento2? I'm finding Magento\Theme\Block\Html\Header. But there is no class related to Head.php Update: <?php /** * */ class ...
Sivakumar K's user avatar
  • 2,023
0 votes
4 answers
6k views

Adding TypeKit code (or any code) into the Head of a Magento 2 site

All I want to do is to add a custom font from TypeKit into my Magento 2 website. Previously I just used to find /app/design/frontend/XXX/XXX/page/head.phtml and edit that. Simple. With Magento 2 it ...
Jimmery's user avatar
  • 1,509
1 vote
1 answer
894 views

Magento2 css from module isn't loading

I want to load a custom css file for the admin panel from a custom module folder. My layout xml file looks like this <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Lachezar Raychev's user avatar
0 votes
0 answers
635 views

Finding where CSS and JS injection is called from

In my development site, I added an extension that I have since decided to remove. Having removed all the files from the site structure, I am still seeing the css and js include files being included in ...
robgt's user avatar
  • 439
16 votes
5 answers
10k views

What is the proper way of positioning/ordering CSS files in Magento 2?

In the Magento 2 DevDoc it says To include a CSS file, add the <css src="<path>/<file>" media="print|<option>"/> block in <head> section in a layout file. However it ...
Jey DWork's user avatar
  • 1,101
1 vote
3 answers
6k views

Adding New Facebook pixel to <head>

Trying to add the new Facebook pixel to Magento 1.9.1.1. So it can appear on all pages. I have added the following to app/design/frontend/rwd/CustomTheme/layout/local.xml between <?xml version="...
user2774042's user avatar
0 votes
2 answers
34 views

header display issue

Just wondered if anyone knew why the header displays differently on my live site and testing site.(the blue header bar is quite a bit wider and doesnt look as good) The two sites are effectively the ...
Paul Wallace's user avatar
0 votes
1 answer
46 views

Cannot connect the skin file in head

I'm is beginner in magento. I try to connect the library jquery-ui, but fail! . Paths to the my custom topic: /app/design/frontend/alokuteshop/default/ /skin/frontend/alokuteshop/default/ I edit ...
  sable's user avatar
1 vote
1 answer
1k views

Adding code to the head section of homepage only

How do I add code to the head of my homepage only? I did some research and I think it needs to go into layout.xml under but it doesn't seem to be showing. My code with this added is below: <...
user3217495's user avatar
7 votes
2 answers
32k views

Add custom js in head in magento2?

I have custom module. I want add file my.js in folder app\code\Xanka\Slider\view\frontend\web\js\slider\my.js. I used code in app\code\Xanka\Slider\view\frontend\layout\default.xml <head> &...
xanka's user avatar
  • 2,114
1 vote
2 answers
455 views

what does this piece of javascript do and can i remove it safely?

<script type="text/javascript">//<![CDATA[ var Translator = new Translate({"HTML tags are not allowed":"HTML-code is niet toegestaan","Please select an option.":"Selecteer a.u.b. een ...
Carlo's user avatar
  • 315
2 votes
1 answer
1k views

Magento: how to use removeItem for js files added by extension programatically

I have a 3rd party extension adding JS in via an observer: <?php class Anowave_Owl_Model_Observer extends Mage_Core_Model_Abstract { public function dispatch(Varien_Event_Observer $observer) ...
baku's user avatar
  • 262
2 votes
1 answer
601 views

Rewriting Html Head Block

Anyone have any idea why I can't rewrite the Mage_Page_Block_Html_Head block? My config.xml file looks like this: <config> <modules> <Mymodule_Robots> <...
hammygoonan's user avatar
2 votes
1 answer
729 views

Prepend block to Mage Head Block using controller_action_postdispatch event observer

I am trying to use a custom event observer to observe the controller_action_postdispatch event and modify the response body directly by replacing opening head tag with + my custom block content. It ...
MageNewb's user avatar
1 vote
1 answer
99 views

How do I insert javascript immediately following the <head> opener, but only on the homepage? (Google Analytics AB Testing setup)

I'm fairly new to Magento development. How can I insert code immediately following (not before ) on the index/home only? I'm trying to insert some JavaScript for a Google Analytics Content ...
Brandon Rome's user avatar
7 votes
1 answer
2k views

How do I remove <meta name=... from head

How can i remove <meta name="keywords" content="keyword"/> from head through layout.xml?
Sebastian lockwood's user avatar
0 votes
2 answers
66 views

Magento plugin help

First of all, i'm new to magento, i've read a few books and tried google before posting my problem. Our company has a widget which we want to make available on the magento store, I have so far ...
Steve Goodwin's user avatar
0 votes
1 answer
2k views

Magento Custom head content for Individual pages

Google Webmaster Tools and marketing suppliers, pricecomparision suppliers, Google Analytics, Facebook Ads etc. etc.... all wants their individual codes inplemented on convertion pages. Not on all ...
Supertankeren's user avatar
0 votes
1 answer
8k views

Adding JS File in head.phtml

I'm trying to add a js file to the head section of my file and am not sure if I'm following procedure here. What I have done is gone into the head.phtml file and placed the path to the js file below ...
Matt Jones's user avatar
1 vote
1 answer
2k views

How to add custom css and js files after certain default ones

We know that all css/js files added by page.xml in default handle are global, they're loaded in all pages. When I add some css and js files in specific handle (eg. catalog_category_default), they're ...
Tran Dinh Khanh's user avatar
0 votes
1 answer
777 views

Adding dynamic data in head [duplicate]

Im building a Social module aand one of the features is that the users can add their own Meta Cards like twitter:cards and opengraph data. At the moment the user inputs their meta data into a simple ...
Tom Burman's user avatar

1
2