Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION PHP How to add class to div
#3
(2017-06-14, 00:04:59)morvy Wrote: not sure if I understand correctly what you're asking, but where does the <div class="potato"> come from ? When is the potato class added to this div?

Might it be added to a page in the source editor part of the page editor?

It can be done with plugin GS Custom Settings. You edit a page in de source modus. You make a div and set the class to potato
Code:
<div class="potato">bla</div>
Then you add the in page code for GS Custom Settings. In the admin interface you set the setting to carrot. The code in the source view would become something like:
Code:
<div class="potato (% setting: test1/new_setting %)">bla</div>
Reply


Messages In This Thread
PHP How to add class to div - by Riianna - 2017-06-10, 07:56:55
RE: PHP How to add class to div - by morvy - 2017-06-14, 00:04:59
RE: PHP How to add class to div - by datiswous - 2017-06-14, 06:13:52



Users browsing this thread: 1 Guest(s)