Where do i find the means to trim this stuff
# June 4, 2013 at 11:59 pm
Diving into wordpress this evening and i am using a SUPER AWESOME theme, underscores theme.
What i want to change:
Every link put into my head, i want to strip
Now, i can easily write some JS to rip out those attributes, but why add more code when i can just comment it out.# June 5, 2013 at 3:51 am
Yeah, MVC style. The server side code would load a script tag into the page dynamically through a function in which controls each part (script open tag | type attribute | sec | end script tag).
Since WordPress takes control of loading stuff like that, in Kirby can I just echo the script? Something simple like this:
echo "<script src='" . $src . "'></script>";
# June 5, 2013 at 6:23 am
I’m not sure if you can or cannot.
Update: I believe what you’re asking is in fact possible with Kirby. Kirby doesn’t output fixed attributes or any of that nonsense you get with WordPress. Basically you have control over your code.
To echo out scripts, you do this:
< ?php echo js('path/to/script.js') ?>
You must be logged in to reply to this topic.