Announcement

Collapse
No announcement yet.

How to change the h1 tag without change it in the menu

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

    How to change the h1 tag without change it in the menu

    Hello,

    We are trying to change the h1 tag in our site so it will be different to the one that is on the menu.

    I know in the software, that what ever the section title is that is what the h1 tag will be. Is there away of over riding this? So that for eg. bathroom accessories is the section title but the h1 is luxury bathroom accessoriess.

    Many thanks

    #2
    In design view with a section page selected, click on the section name in preview.
    The Section Name Variable will be highlighted in the layout code at the bottom. (if you can't see layout code click window - restore split page view.)

    Right click on the section name variable in the code and 'Edit Appearance' Change style from H1 to H2.

    In design library, variables, right click on Section, new variable.
    Name h1tag
    Description h1 tag
    Prompt h1 tag
    Place of setting section
    Panel name properties
    Type text
    Allow empty value tick
    Allow use parent untick
    Initial value and top level value empty.
    OK.
    Then you put the variable where you want the h1 tag.
    For example, in design tree select Section Page body.
    Right at the top before anything, do a carriage return to create a new line.
    In that line paste this:
    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22h1tag%22%20%2f%3e%20%21%3d%20%22%22">
    	<h1><actinic:variable name="h1tag" /></h1>
    </actinic:block>
    That says if the h1 tag is not empty print the value for h1 tag which is wrapped in <h1> tags.

    It won't look that great at the top of the section page body but you can experiment with position.
    Yoi can do it for brochure pages too following the same principles and ticking brochure in place of setting for the h1tag variable.
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    Comment


      #3
      Alternative H1 tags

      Hello Jonathan,
      Thanks for your reply on Ian`s behalf as he is on holiday this week.
      We will try your method and let you know next week.
      Regards
      Giles

      Comment


        #4
        Giles - I have this in hand for you and will be in contact later today.

        In principle the above is correct but your design is more complex, each part of the responsive design (PC, mobile and tablet) needs modifying to suit as do the overall, section and product layouts.

        Comment

        Working...
        X