DMS 2 Modal not working with child theme

7 posts in this topic

Hi guys,


I'm using a child theme on DMS 2 but it seems that modal shortcode doesn't work.

If I switch to DMS it work but I lost all customization I have made trough the child theme functions.php and style.less.


Any suggestion?

Best regards


Share this post

Link to post
Share on other sites

Where are you inserting the shortcode? Link?

Share this post

Link to post
Share on other sites

The modal shortcode should still work with the child theme active. Were you placing in the same section on both occasions? Some sections aren't designed to take shortcodes and will not process the code so this could be what you're experiencing. Best way to test would be to place the shortcode in the main post content of the page/post with the child theme active and test it there.

Share this post

Link to post
Share on other sites

I'm using the shortcode in the content of a standard page.


And then simply switch from DMS to child theme activating them in the theme selection page of wordpress administration area.

Share this post

Link to post
Share on other sites

Whats the child theme you're using, I'll try and replicate.

Share this post

Link to post
Share on other sites

A custom one I've started with:



// Setup  -- Probably want to keep this stuff... 

 * Hello and welcome to Base! First, lets load the PageLines core so we have access to the functions 
require_once( dirname(__FILE__) . '/setup.php' );



 * --- This is some checking, and you should not have to touch this code (unless directed) ---
 * 3.4 compat added
 * Fix for php5.2

if ( function_exists( 'wp_get_theme' ) ) {
	$parent_folder = wp_get_theme( basename( dirname( __FILE__ ) ) )->get( 'Template' );		
} else {
	$theme_data = get_theme_data(STYLESHEETPATH . '/style.css');
	$parent_folder = $theme_data['Template'];
$init_file = WP_CONTENT_DIR .'/themes/' . $parent_folder . '/functions.php';

if ( file_exists( $init_file ) )
	require_once( $init_file );
	add_action( 'template_redirect', create_function( '', 'echo "<p>Unable to locate the main framework files! Make sure the parent theme folder is named correctly.</p>";' ) );

and style.css

Theme Name: Child theme
Theme URI:
Description: A child theme for DMS.
Version: 1.0
Author: Author
Author URI:
Tags: developer

Template: dms


Share this post

Link to post
Share on other sites

The modal shortcode is working just fine with a child theme I created -


Therefore, its either related to something you have added to your child theme, a plugin or script/code you're using.


You can download my child theme here -

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • useability of shortcode
      By micstepl+
      When within a content section & using "shortcode button". My recommendation is for the Pop-Up in "pagelines sections" , where it is annoying that someone needs to enter the "unique-ID".
      based on the selection of a section  (relational) offer custrom ID-Names in a drop-down (for selection) meaning, where a customer has already taken action to enter a Custrom-ID offer the choice to either enter use the drop-down (der Zustrom-ID´s in use) or enter a unique-ID (as now available, randomly given by the system)  
    • shortcodes - wrong function
      By micstepl+
      starting point
      inserting a full with section giving it a "custrom name" on the way to .... wrong-function
      moving to any page with "Framework Content" inserting a "shortcode" with the Button + entring the above mentioned wrong-function
      the section is not displayed in the way the original looks like
    • Ability to Use 3rd Party Shortcodes
      By dawsonbarber+
      In DMS, iBlogPro6, etc 3rd party shortcodes (specifically Types & Views) worked, even for background images.
      So far, I haven't had success getting 3rd party shortcodes to work in PL5 sections (the raw shortcodes are being rendered as output on the page).
      Is there anything I can do to add support for 3rd party shortcodes or will this be addressed in a future update?
    • Basic Child Theme
      By dawsonbarber+
      I want to install a basic child theme on a site I'm switching from iBlogPro6 to PL5 and want to make sure I've got the minimum covered:
      screenshot.png style.css functions.php That's it, isn't it?
    • adding "teams" shortcode to my about us page
      By Rebecca Rinas
      This is my first time building a site, and i am trying to add the team members plugin to my about us page - where do i add this short code on my theme site?