0
Welcome Guest! Login
0 items Join Now

How to add a fixed button to a Pancea website

  • How to add a fixed button to a Pancea website

    Posted 14 years 4 months ago
    • Hi,

      I have built a couple of websites for a company using the Panacea template (and we are *very* happy with the results). I have in mind to add a button to either the left or the right of the browser that links through to the contact page. This button would be fixed when the rest of the screen scrolls up and down. Do you know how I can do this in Joomla? Also, is there anything in the RocketTheme library that would do this for me?

      Thanks, Simon
    • cdavis411's Avatar
    • cdavis411
    • Preeminent Rocketeer
    • Posts: 17787
    • Thanks: 882

    Re: How to add a fixed button to a Pancea website

    Posted 14 years 4 months ago
    • Hi,

      1 - make a mod_custom module (surround your button code with a DIV tag that has a unique id.
      Like so:
      <div id="contact-btn-fixed">add button code here</div>
      2 - Assign it to "All" menu items in the "navigation" position.
      3 - add this at the bottom of your template.css file:
      #contact-btn-fixed {position: fixed; top: 0; left: 0;}
      4 - you may need to play with the top/left values.
      5 - save and clean cache

Time to create page: 0.077 seconds