PROBLEM code being modified - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: PROBLEM code being modified (/showthread.php?tid=7797) |
code being modified - timconsidine - 2015-12-30 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 RE: code being modified - timconsidine - 2015-12-30 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 RE: code being modified - datiswous - 2015-12-30 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:guide#multiple_content_area_s Optionally every page can set it's own alternative template file with a different layout. |