1
zivXP
Switching themes
  • 2023/2/23 9:01

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Is it possible to switch themes with a button?

2
heyula
Re: Switching themes
  • 2023/2/24 15:08

  • heyula

  • Theme Designer

  • Posts: 594

  • Since: 2008/4/24


There is already a block for this. Themes block in the system module. But if you want to do it with a button, you can use the code below. domain.com/index.php?xoops_theme_select=XH-003
<div class="btn-group" role="group" aria-label="Basic mixed styles example">
  <
button type="button" class="btn btn-danger"><a href="https://domain.com/index.php?xoops_theme_select=XH-003">Tema 1button>
  <
button type="button" class="btn btn-warning"><a href="https://domain.com/index.php?xoops_theme_select=XH-004">Tema 2button>
  <
button type="button" class="btn btn-success"><a href="https://domain.com/index.php?xoops_theme_select=XH-005">Tema 3button>
div>
Resized Image

3
zivXP
Re: Switching themes
  • 2023/2/24 16:44

  • zivXP

  • Not too shy to talk

  • Posts: 113

  • Since: 2006/2/9 1


Quote:

heyula wrote:
There is already a block for this.
Themes block in the system module.

But if you want to do it with a button, you can use the code below.

domain.com/index.php?xoops_theme_select=XH-003


Thank you. This is what I was looking for. I will try to implement.

Login

Who's Online

257 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 257


more...

Donat-O-Meter

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

Latest GitHub Commits