0

I searched Stackexchange but my question is different from others. I saw a similar question with Magento 1.9 but that solution does not work on 1.8. So therefor I ask my question.

I noticed that the browsers block this content from my https Magento:

<link href='//fonts.googleapis.com/css?family=Raleway&subset=latin' rel='stylesheet' type='text/css' />

I did not put this line there, so I guess it is Magento default / pre-installed. I've been searching on the server but cannot find the file that is responsible for putting that line in the head.

Can anyone tell me where I can find the responsible file? So that, hopefully, I can easily remove this line and make my website 100% https secure.

Thank you in advance. John

1 Answer 1

0

It's set in app/design/frontend/rwd/default/layout/page.xml. You'll notice following line:

<action method="addLinkRel"><rel>stylesheet</rel><href>//fonts.googleapis.com/css?family=Raleway:300,400,500,700,600</href></action>

You can easily remove it by adding following lines in your local.xml:

<default>
    <reference name="head">
        <action method="removeItem"><type>link_rel</type><name>//fonts.googleapis.com/css?family=Raleway&subset=latin</name></action>
    </reference>
</default>

If that method is not helping you, I guess that you have purchased 3rd party theme which is injecting that for you. In that case, you'll have to search through your code for "Raleway" string, and then we can work further how to properly remove it.

10
  • Thank you. Unfortunately I don't have the folder /rwd/. I do see some page.xml files, but they don't have the string. In my template folder, there is no page.xml file.
    – Jason Dana
    Commented Mar 2, 2017 at 18:23
  • Try to search all files in your app/ directory for "Raleway" string, and let me know if you've found it somewhere. Commented Mar 2, 2017 at 18:33
  • Is there a way to search automatically through the files for that string? Or do I have to open each file manually and do a manual search?
    – Jason Dana
    Commented Mar 3, 2017 at 9:25
  • You can do it with any IDE, like PhpStorm, Eclipse, even Sublime, Atom... If you want to do it from the command line, just type grep -r "Railway" app/. Commented Mar 3, 2017 at 9:52
  • Thanks. I found 1 hit in this file: code/local/MagenThemes/MTTheme/Model/System/Config/Source/Design/Font/Family/Google.php code<?php class MagenThemes_MTTheme_Model_System_Config_Source_Design_Font_Family_Google { public function toOptionArray() { $gfont = 'Abel,Abril,etc...,Raleway,Rammetto One,etc...'; $fontarray = explode(',',$gfont); $options = array(); $options[] = array( 'value' => '', 'label' => '--Selec --', ); foreach($fontarray as $font){ $options[] = array( 'value' => $font, 'label' => $font, ); } return $options; } } code
    – Jason Dana
    Commented Mar 3, 2017 at 10:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.