1
sova
block id in theme
  • 2011/12/12 10:10

  • sova

  • Not too shy to talk

  • Posts: 149

  • Since: 2010/4/13


If each block has a specific ID to use it The theme?

-------------
Sorry I can not speak English well

2
Mamba
Re: block id in theme
  • 2011/12/12 10:37

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Normally XOOPS takes care of blocks management for you.

If you want to control blocks manually, you can try "Blocks Anywhere"
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

3
kerkyra
Re: block id in theme
  • 2011/12/12 11:06

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


you can also use the block id in your themes like this

Quote:


<{if $block.title != ""}>
<{$block.title}>

<{/if}>
<{$block.content}>




then you can use css to edit the appearance of a specific block like this
Quote:

.blocktitle10 {css for title in here}
.content10 {css for content in here}


Of course you have to create your block first (so you can identufy its id)
and then write its css.

Login

Who's Online

236 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 236


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