new custom page calling slider in theme.js page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kitdang
    Mivite


    • Jan 2009
    • 406

    #1

    new custom page calling slider in theme.js page

    Hi Matt,

    Shadows by default came with theme.js that had all the pages (jsSFNT, jsCTGY, jsPROD,..etc..). How do I go about creating a new page and have it call theme.js? How does it know to call js-page-code?

    Thanks
  • Matt Zimmermann
    Mega Mivite










    • Apr 2008
    • 2482

    #2
    The page functions in theme.js are looking for the page ID. When you create a new page, the BODY tag on the page should have id="js-&mvte:page:code;" as an attribute. If you created a page with the code of "COOL_PAGE", then the function you would add to theme.js would be jsCOOL_PAGE.
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment

    Working...
    X