Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION how to add php script?
#1
Hi
i'm newbie in getsimple. please, how does I add php scripts to footer section from Pages/Edit Footer in Panel Control? my theme is Simplicity. thx in advance.
Reply
#2
(2014-11-12, 00:31:17)carlost Wrote: Hi
i'm newbie in getsimple. please, how does I add php scripts to footer section from Pages/Edit Footer in Panel Control? my theme is Simplicity. thx in advance.

You create a component with your php script (click on "Theme" then "Create Component"). Let's say you name it "my_script"

Then you call it from the footer's html with

{% my_script %}
Reply
#3
not really, get_component in php, or using dynpages plugin {} syntax in html
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
(2015-02-14, 12:25:12)shawn_a Wrote: not really, get_component in php, or using dynpages plugin {} syntax in html

Thanks for the reminder, that's what I did but I forgot I had installed the dynpages plugin...
Reply




Users browsing this thread: 1 Guest(s)