Announcement

Collapse
No announcement yet.

H1 Tag on Fragment - How to hide

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    H1 Tag on Fragment - How to hide

    Hi

    I want H1 Tags for the Titles of some Fragments but I don't actually want to show the title,

    I've sort of fiddled it so for example I've put

    <h1><actinic:variable formatting="font(Size|8|Color|ffffff)" encoding="actinic" name="FragmentTitle" /></h1>

    But really I'd rather just have it on there but hidden.. prob just being a bit thick but there must be a correct way to do it.
    Okay, I pulled the pin. Now what?... Wait!...Where are you going?

    #2
    Do you mean you want it added to the underlying code but hidden on the page? If so, a very bad idea IMO, either have them and show them or don't have them, what's a search engine going to think about that tactic? Given your recent css lessons, you should also know better than to add styling to the variable as you have done, create a class and apply it to the h1 tag instead, inline styling as you have illustrated really is the worst of the worst ways to do things.

    In CSS you can add display: none; to a class to hide it, but like i said, don't do it, you are playing with fire, particularly so when playing with the biggest and most important heading tag there is..

    Comment


      #3
      ok, thanks for the advice. Not sure what to do then as some of the Text only fragments have really long titles that we wanted picked up, but we didnt necesarily want to show the long title, only a condensed one on the site.
      Okay, I pulled the pin. Now what?... Wait!...Where are you going?

      Comment


        #4
        Then place the text in the meta title tag perhaps.

        Comment


          #5
          Originally posted by pinkequine View Post
          ok, thanks for the advice. Not sure what to do then as some of the Text only fragments have really long titles that we wanted picked up, but we didnt necesarily want to show the long title, only a condensed one on the site.
          This is equally as worrying - you design for the viewer first and the search engines will happily play ball - if you are cramming titles for SEO but concerned it is too long for humans then it is too long full stop.

          H1 titles need to be very specific (put keywords in there) about what is to follow but save the 13 page essay for the product description text


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment

          Working...
          X