Title: Nesting shortcodes in child theme .php
Last modified: August 21, 2016

---

# Nesting shortcodes in child theme .php

 *  [njs7227](https://wordpress.org/support/users/njs7227/)
 * (@njs7227)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/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: [http://rankforplaces.com](http://rankforplaces.com)
 * Thanks!

The topic ‘Nesting shortcodes in child theme .php’ is closed to new replies.

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [nested](https://wordpress.org/support/topic-tag/nested/)
 * [php file](https://wordpress.org/support/topic-tag/php-file/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [njs7227](https://wordpress.org/support/users/njs7227/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/nesting-shortcodes-in-child-theme-php/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
