need help with an html code

7 replies
  • WEB DESIGN
  • |
hi all,

maybe someone would be kind enough to tell me, what code i would have to use, in order to apply H1-H6, but still keep the text like all the other text.

in other words, i only want the search engines to see it, not my readers.

i also want to do the same with bold text.

some help would be appreciated
#code #html
  • Profile picture of the author plainwords
    Just make the style for your H1-H6 the same as your p style.
    {{ DiscussionBoard.errors[1834212].message }}
    • Profile picture of the author LK
      Add this to your css file

      PHP Code:
      h1h2h3h4h5h6,
      h1 ah2 ah3 ah4 ah5 ah6 a
      h1 a
      :hoverh2 a:hoverh3 a:hoverh4 a:hoverh5 a:hoverh6 a:hover
      h1 a
      :visitedh2 a:visitedh3 a:visitedh4 a:visitedh5 a:visitedh6 a:visited
      {
        
      font-weightnormal;
        
      font-stylenormal;
        
      text-decorationnone;
      font-familyVerdana;
      font-size12px;
        
      color#000;

      Replace the variables inside the brackets with your own (ie. replace 'verdana' with 'times' or whatever font you might be using, '12px' with whatever size font you want etc.)

      Hope this helps =)
      Signature
      LK's Adsense Experience - no shenanigans, just a simple blog~
      {{ DiscussionBoard.errors[1834949].message }}
      • Profile picture of the author superowid
        Originally Posted by LK View Post

        Add this to your css file

        PHP Code:
        h1h2h3h4h5h6,
        h1 ah2 ah3 ah4 ah5 ah6 a
        h1 a
        :hoverh2 a:hoverh3 a:hoverh4 a:hoverh5 a:hoverh6 a:hover
        h1 a
        :visitedh2 a:visitedh3 a:visitedh4 a:visitedh5 a:visitedh6 a:visited
        {
          
        font-weightnormal;
          
        font-stylenormal;
          
        text-decorationnone;
        font-familyVerdana;
        font-size12px;
          
        color#000;

        Replace the variables inside the brackets with your own (ie. replace 'verdana' with 'times' or whatever font you might be using, '12px' with whatever size font you want etc.)

        Hope this helps =)
        That's it. You've got it now. Good luck.
        Signature

        Hard time to keep promoting business? Don't worry!
        JUST USE MY GRAPHIC & VIDEO SERVICES
        . . . . . Let me help cutting your ad production cost! . . . . .
        {{ DiscussionBoard.errors[1836019].message }}
  • Profile picture of the author sajan.kota
    Banned
    [DELETED]
    {{ DiscussionBoard.errors[1837086].message }}
    • Profile picture of the author marketguy
      i am a total noob, as far as programming goes.

      i use wordpress.......how do i add that in wordpress?
      Signature


      {{ DiscussionBoard.errors[1837518].message }}
  • Profile picture of the author mattalways
    You can add that to your style.css file within your theme directory.
    Signature

    Quit wasting your money! If you need a website, get me to do it right! I'll probably even do it for less! Design/Development/Software, I'm your guy! matt@snidge.com
    {{ DiscussionBoard.errors[1837720].message }}
    • Profile picture of the author marketguy
      Originally Posted by mattalways View Post

      You can add that to your style.css file within your theme directory.
      and it will only make the changes is the body text?
      i do not want the header to be affected.

      thanks
      Signature


      {{ DiscussionBoard.errors[1842583].message }}
      • Profile picture of the author NetMan
        Originally Posted by marketguy View Post

        and it will only make the changes is the body text?
        i do not want the header to be affected.

        thanks
        Ha, now it becomes a bit more complicated and needs specfic css coding
        then. Otherwise yes, if you apply that code in your WP style.css it affects
        ALL of the H tags indeed.

        Best regards,

        Andre Foisy
        {{ DiscussionBoard.errors[1849704].message }}

Trending Topics