WordPress.org

Ready to get started?Download WordPress

Forums

how to add to wordpress header.php (14 posts)

  1. HaniTips
    Member
    Posted 1 year ago #

    Hello
    I'm trying to add a code through WordPress HTML editing page
    and this what happens to the website page Click Here ...
    the website should look like this Click Here to visit

    ********************************
    this is the code i'm copying

    [large amount of code moderated - please use the pastebin - http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    ***********************************************
    I read that i need to put the first section or until </head>
    into the header.php file. and re-upload the file to my website.

    i found only wp-blog-header.php file that includes the word header.

    this is what i have in the wp-blog-header.php file...

    ************************

    <?php
    /**
     * Loads the WordPress environment and template.
     *
     * @package WordPress
     */
    
    if ( !isset($wp_did_header) ) {
    
    	$wp_did_header = true;
    
    	require_once( dirname(__FILE__) . '/wp-load.php' );
    
    	wp();
    
    	require_once( ABSPATH . WPINC . '/template-loader.php' );
    
    }

    [please mark any posted code - see http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    *************************
    Please help me what i'm doing wrong.

  2. cynnie88
    Member
    Posted 1 year ago #

    Wow you are doing pretty much everything wrong. Go read the documentation on creating themes and template files.

  3. Karun
    Member
    Posted 1 year ago #

    You have to learn about developing themes. The following links will help you

    Create WordPress theme from scratch part 1

    Create WordPress theme from scratch part 2

  4. HaniTips
    Member
    Posted 1 year ago #

    i read the articles . i still can't find the header.php file i'm supposed to edit. i can't find the header.php the is installed "NOW" to wordpress.

    i found 2 other header.php files in the theme directory. i can get to these files through my Cpanel account.
    the 2 header files i found is for two uninstalled themes.

    for some reason i cant get to the theme installed files, and i don't find them from the Cpanel.

    where do i find the header.php i'm suposed to edit? the one installed in wordpress?

    Link=>=>

    http://www.netting-profitable-writing-system.com/

  5. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try looking in wp-content/themes/your_theme_folder.

  6. HaniTips
    Member
    Posted 1 year ago #

    Go read the documentation on creating themes and template files.

    ...
    I used Kompozer for a while. and i just finished downloading Adobe Dreamweaver. i used it a while ago.

    ********************************

    the code i'm trying to paste generated from scrubtheweb.com
    and this all i get from them is to paste the code in the HTML editor.

    this is the page i'm trying to add meta tags, meta keywords, and the rest.in.
    http://www.netting-profitable-writing-system.com/

    *******************
    Where and how to add the metas that i need for search engines?

  7. HaniTips
    Member
    Posted 1 year ago #

    Try looking in wp-content/themes/your_theme_folder.

    I did. i did not find the installed theme in the theme directory. i found two extra themes if i want to change the original.
    I want to edit the one installed. Not others.

    this is the page i want to add meta tags in.

    http://www.netting-profitable-writing-system.com/

  8. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    What theme is active according to Appearance -> Themes?

  9. HaniTips
    Member
    Posted 1 year ago #

    The Theme installed is the. memberspring theme v 1.0

    *****************************
    i found the installed header in. Appearense-> Editor.
    the one i'm supposed to edit and add the meta tags to it.

    i found it at the right side of the editor i have a long list of what installed in my website.

    in this list i found the installed Theme Header.
    and i got the correct code "I Think" from WordPress Support

    This is the code i add to the header but i still can't see the changes i made in the view source page.
    and search engines saying i still don't have "meta description" and "meta Keywords"

    The Code...

    <meta name="resource-type" content="document" />
    <meta http-equiv="content-type" content="text/html; charset=US-ASCII" />
    <meta http-equiv="content-language" content="en-us" />
    <meta name="author" content="Hani Salameh" />
    <meta name="contact" content="hanisalamehtips@gmail.com" />
    <meta name="copyright" content="Copyright (c)2010 -2012
    Hani Salameh. All Rights Reserved." />
    <meta name="description" content="The Profitable Writing System free ecourse – your guide to using simple articles to pull in all the free traffic ... ll discover 7 quick and easy ways to get your content ..." />
    <meta name="keywords" content="article, free, traffic, discover, simple, profitable, writing, system, netting, article, free 7 day ecourse, articles, money" />

    I added this code after the this line. as WordPress Support Suggested

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
  10. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    I'm sorry but as you are using a commercial theme/plugin, you need to seek support from the theme's vendors.

  11. HaniTips
    Member
    Posted 1 year ago #

    I will if i will not solve to the end of the day

    i'm looking to enter this section in wordpress.
    but i cant find it.
    where is this :->-> Admin > Options > General panel.

    can you help me with this?

  12. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    There is no Options menu in WordPress itself.

  13. HaniTips
    Member
    Posted 1 year ago #

    Thank you

  14. HaniTips
    Member
    Posted 1 year ago #

    You have to learn about developing themes. The following links will help you

    Create WordPress theme from scratch part 1

    Create WordPress theme from scratch part 2

    Hello.
    still haven't solve the problem.
    ....................................
    this is from the link you provided.

    i can't find this. how do i enter the section or what ever he is talking about

    This is the manual style of adding a description, but WordPress can make this easier for you. Add your description, similar to above, in your Admin > Options > General panel. The description is entered in the line designated as Tagline. Then paste in the following in your head area.
    
    <meta name="description" content="<?php bloginfo('description'); ?>" />
    WordPress will automatically generate the description. Note: Some Themes use this tag in the header just below the title of the blog or site. If you don't want it there, remove or comment out the tag in the header area.

    Help please...

Topic Closed

This topic has been closed to new replies.

About this Topic