1
turnerrw
Front Page - Hide Block Decorations
  • 2012/10/18 16:29

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


I've just put a JQuery Slider on the front page of my website in a center column block.

This is an acceptable solution for the moment, but I'd like to find a way to display the slider at the top of the center column of only the front page WITHOUT the block decorations.

Any ideas on the best way to do this?

Thanks much.

2
deka87
Re: Front Page - Hide Block Decorations
  • 2012/10/18 17:11

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


You've got to put your code in the theme.html of your theme and limit its appearance on your site to homepage only using one of the methods described here: https://xoops.org/modules/newbb/viewtopic.php?post_id=349119.
btw instead of embedding entire html of your code into theme.html I recommend you to save it in a general xoops custom block (not active, but visible for the groups of your chose) and embed the block itself via trabis' Blocks anywhere hack (find it here:http://www.xuups.com/modules/publisher/item.php?itemid=10).

regards,

deka

3
turnerrw
Re: Front Page - Hide Block Decorations
  • 2012/10/18 17:26

  • turnerrw

  • Just popping in

  • Posts: 68

  • Since: 2003/12/1


I will try that method...thanks.

Since my code is basically an iframe reference, it occurs to me that I could put an if then loop in my theme.html file that only displays the iframe reference on the front page.

Is there an obvious way to determine when a user is viewing the front page only?

Login

Who's Online

247 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 247


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits