Nesting shortcodes in child theme .php
-
As a disclaimer, my experience level is copy-and-paste but I’ve managed to do quite a few customizations with a bit of research. I have created a child theme because I want to add an area on the front page using an action hook (as defined below, this area would be blue and read “I want this area to go below the Front Boxes”) and the .php file of the child theme reads:
‘<?php
function childorbit_test_hooks_9() {
?><p class=”clear” style=”background:#C7DEFe;”>I want this area to go below the Front Boxes.</p>
<?php
}
add_action( ‘bit_content_container_end’, ‘childorbit_test_hooks_9’ );
?>’But I also want to have 2 columns, which is [orb row] and within which is nested the [orb-column21] (the 21 = 2 columns, text for 1 column included).
But then I ALSO want what the developer has defined as Notice Boxes in each column, [orb-notice], so this would be something like:
[orb-row] [orb-column21] [orb-notice]
I want this column to go below the Front Boxes.
[/orb-notice] [/orb-column21][orb-column21-last]
I want this second column to go below the Front Boxes.
[/orb-notice] [/orb-column21-last] [/orb-row]And my question is, do I use ‘echo do_shortcode’ for nesting shortcodes in a .php file and, if so, do I put that in front of every shortcode or just once? And in both instances, where in the code would it/they go?
I’m playing around with it here: https://rankforplaces.com
Thanks!
- The topic ‘Nesting shortcodes in child theme .php’ is closed to new replies.