h1 and h2 on wordpress

Discussion in 'HTML & Website Design' started by gedarnet, Dec 7, 2014.

  1. #1
    hi
    how i can change h1 and h2 places on wordpress homepage and page's posts.
     
    gedarnet, Dec 7, 2014 IP
  2. xXxpert

    xXxpert Well-Known Member

    Messages:
    604
    Likes Received:
    34
    Best Answers:
    9
    Trophy Points:
    165
    Digital Goods:
    7
    #2
    It depends theme you are using. You need to edit your theme
    Goto : Dashboard > Themes > Editor
     
    xXxpert, Dec 7, 2014 IP
  3. Get Rich Methods

    Get Rich Methods Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Yes, it depends a lot on the them. As xXxpert suggested, explore the editor section of Wordpress, looking for the H1 and H2 within the appropriate php pages. Failing that, some themes actually allow you to change these things via CSS (display: none) and subsequently adding them when and where required in the WYSIWYG editor for the respective page or post.

    Tom
     
    Get Rich Methods, Dec 7, 2014 IP
  4. gedarnet

    gedarnet Well-Known Member

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #4
    Surely, I know this very well, but on the home page there is H1 on the Articles and not on the name of the site, what is the solution?
     
    gedarnet, Dec 7, 2014 IP
  5. davidmoore789

    davidmoore789 Greenhorn

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #5
    @gedarnet let me know your URL so that I can check and assist you..
     
    davidmoore789, Dec 7, 2014 IP
  6. gedarnet

    gedarnet Well-Known Member

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #6
    Go: http://photo.elsoar.com/
     
    gedarnet, Dec 7, 2014 IP
  7. Naina S

    Naina S Active Member

    Messages:
    203
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    93
    #7
    I w
    Edit the page.php and index.php in your theme. You will find <h1> and <h2> tags you can change them by your need.
     
    Naina S, Dec 7, 2014 IP
  8. gedarnet

    gedarnet Well-Known Member

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #8
    <h1> and <h2> is not found in index.php
     
    gedarnet, Dec 7, 2014 IP
  9. Naina S

    Naina S Active Member

    Messages:
    203
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    93
    #9
    then i think your theme would be using another template for the blog page. You can see the template if you edit the blog page. For blog category check category.php, archive.php and for single blogs you have 'single.php'.
     
    Naina S, Dec 7, 2014 IP
  10. gedarnet

    gedarnet Well-Known Member

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #10
    OK, Wait with me please... BRB
     
    gedarnet, Dec 7, 2014 IP
  11. Naina S

    Naina S Active Member

    Messages:
    203
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    93
    #11
    also note that the homepage is also called sometime by 'page-home.php' so do check it too.
     
    Naina S, Dec 7, 2014 IP
  12. gedarnet

    gedarnet Well-Known Member

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #12
    No file he's name page-home.php, also in single.php
    <h1 class="entry-title"><?php the_title(); ?></h1>
    Code (markup):
     
    gedarnet, Dec 8, 2014 IP
  13. Naina S

    Naina S Active Member

    Messages:
    203
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    93
    #13
    You got it. change the h1 tag here to either h2, h3, p or div etc. the_title() gives the title of the page or blog.
    If you want to change its place cut it and place it in the middle after may be <?php the_content(); ?> etc.
     
    Naina S, Dec 8, 2014 IP
  14. Naina S

    Naina S Active Member

    Messages:
    203
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    93
    #14
    What exactly you are trying to do let me know so that i can tell you in more detailed manner.
     
    Naina S, Dec 8, 2014 IP
  15. gedarnet

    gedarnet Well-Known Member

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #15
    Take a general look: http://photo.elsoar.com/
    Note: I would like to change H1 on the homepage only, the name of the site on HomePage.
     
    gedarnet, Dec 8, 2014 IP
  16. Naina S

    Naina S Active Member

    Messages:
    203
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    93
    #16
    In your wordpress cms go to 'Settings>Reading' , here you will see 'Front Page Displays' option. This will tell which page is set as front page of your website. Now click 'Pages' in CMS and edit the page. In the description you can add <h1> tag and save it.

    If you wanna change 'Name of the website so that it changes your HTML Title '. Go 'Appearance >Themes', click on 'Customize' link on the current theme. There you can change the site name and title.

    Let me know if it solves your problem.
     
    Naina S, Dec 8, 2014 IP
  17. gedarnet

    gedarnet Well-Known Member

    Messages:
    139
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #17
    No use, see more details ..

    Crux.. >>>

    [​IMG]

    My files
    [​IMG]
     
    gedarnet, Dec 8, 2014 IP
  18. Naina S

    Naina S Active Member

    Messages:
    203
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    93
    #18
    Can you go to CMS of wordpress and edit the home page, copy and paste all the description of home page here so that i can see.
     
    Naina S, Dec 8, 2014 IP