GetSimple Support Forum

Full Version: code being modified
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to add a piece of content using tabs
I am using Red Agency theme and GS 3.3.7

When I paste the code from the template :
Code:
<?php get_component_with_params('ra-tabs', array( array('hometab1', 'hometab2', 'hometab3'), 2, false, 'vertical')); ?>

It gets modified to :
Code:
<!--?php get_component_with_params('ra-tabs', array( array('hometab1', 'hometab2', 'hometab3'), 2, false, 'vertical')); ?-->

Which as I understand it will comment out the code

Apologies if this is a noob question - have done a search but cannot find relevant answers
OK, so with more learning it seem that this code goes into the template, not the page (my misunderstanding).

But that means you cannot have :
<content>
<tabs>
<more content>

At least not without having 2 content sections ?

Less than ideal - I thought the whole point of shortcodes is to allow embedding of functionality into a page
It reduces the ease of GS for end users.

But I'm still learning so looking forward to corrections of this misunderstanding, and examples of how to do it more seamlessly
Php code is not placed in the page. If you want to place a component with php code in a page use the dynpages plugin: http://get-simple.info/extend/plugin/dynpages/81/

Basically GS uses a theme consisting of html layout and css with php code phrases to imput dynamic data which can be changed in GS admin. GS standard uses one content field per page, but this can be changed via plugins (custom fields, etc.): 
http://get-simple.info/wiki/plugins:guid...ent_area_s

Optionally every page can set it's own alternative template file with a different layout.