-
AuthorPosts
-
June 20, 2014 at 12:49 pm #58916
How do I edit header.php? I’ve found these instructions in wordpress:
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack’s index, first go to “views”
// inside the “framework” subdirectory. Once inside, find your Stack’s folder
// and look for a file called “wp-header.php,” where you’ll be able to find the
// appropriate output.But quite frankly I don’t understand them. Where am I finding this “framework” subdirectory?
June 20, 2014 at 1:57 pm #58944I was wondering the same thing.
June 21, 2014 at 9:02 pm #59365Hey guys,
You can find the “framework” directory in wp-content\themes\x\framework. An example of a stack folder is framework\views\renew.
Hope that helps. 🙂
November 23, 2014 at 11:13 pm #151278Why when I added this code to the header file above – I get duplicate quotation marks.
This is what I added to my file through FTP – <meta name=”robots” content=”noindex, nofollow”>
And this is what is in my header file live on the website – ” <meta name=””robots”” content=””noindex, nofollow””>”
November 24, 2014 at 5:56 am #151508Hi,
Can you provide us your site url so we can take a closer look.
You might be using fancy quotes instead of normal qoutes.
Try changing the code to this.
<meta name="robots" content="noindex, nofollow">
Hope that helps. 🙂
May 22, 2015 at 6:41 pm #279794HI i am trying to put web master verify text code in the header but as above it tells me to do it via framework sub directory i dont understand the reply above do you access this framework sub directory from your own dashboard all tutorials i have seen with other wordpress themes they just go to appearence editor and header php and paste code in the head, thanks
May 22, 2015 at 11:43 pm #279970Hi there,
You don’t have to do it directly to the templates. You can simply add this code at your child theme’s functions.php
add_action('wp_head', 'heads_meta'); function heads_meta () { ?> <meta name="robots" content="noindex, nofollow"> <!-- or your verification code --> <?php }
Hope this helps.
August 31, 2015 at 5:16 pm #374887This reply has been marked as private.September 1, 2015 at 12:20 am #375158Hello There,
Thanks for posting in and giving us your admin credentials.
Please refer to this thread:https://community.theme.co/forums/topic/add-in-head/#post-185763Hope this helps.
January 13, 2016 at 1:52 am #743858Hi, I want to add the following into my header tag, how do i do this?
<script type=”text/j.avascript” src=”//js.causevox.com/v2″></script>
<script type=”text/javascript”>
CV.setDomain(“mycampaign.causevox.com”);
</script>
Obviously, I want to replace the url with my url where it says mycampaign
January 13, 2016 at 2:05 am #743865Hello There,
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Then add the following code on your child theme functions.php file.
function my_head_custom_code() { ?> <script type="text/j.avascript" src="//js.causevox.com/v2"></script> <script type="text/javascript"> CV.setDomain("mycampaign.causevox.com"); </script> <?php } add_action( 'wp_head', 'my_head_custom_code' );
Hope this helps.
-
AuthorPosts