Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #696744

    Hi…

    I’ve searched for the answer to this, but can’t seem to find it.

    Seems as though shortcodes aren’t working in my child theme. Do I have to turn them on in some way?

    I saw some thread about copying shortcodes.js to the child theme, which I did, and then adding some code to the functions.php file in the child theme, which I did, but no change.

    When I enter the short code for columns in a text box it just shows the shortcode text. It’s as though it doesn’t execute.

    What am I missing? :-)

    #696766
    #696774

    OK…I’m certain I did what you said, and no difference… Here’s my functions.php code:

    <?php 
    
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }
    
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }
    
    ?>

    And still, when I load the page, I see the short codes on the page and no columns.
    I’ve created a username and pw for you…

    #697274

    Hi,

    Could you please post FTP logins here privately as well?

    Best regards,
    Yigit

    #697530

    Here you go…

    #697883

    Hi,

    I added following code to Functions.php file of your child theme

    
    function change_shortcodesjs() {
       wp_dequeue_script( 'avia-shortcodes' );
       wp_enqueue_script( 'avia-shortcodes-child', get_stylesheet_directory_uri().'/js/shortcodes.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_shortcodesjs', 100 );

    Please review your website now.

    Best regards,
    Yigit

    #698009

    Still not working: http://csl.killianstrategic.com/#local

    I’m only going to leave the code there for a few hours since I need to get this designed and out. Take a look if you can.

    Tim

    #698334

    Hi Tim!

    I think there might be a misunderstanding in this case. Can you please elaborate on the changes you would like to make?

    Best regards,
    Yigit

    #698480

    :-)

    I’d like the column short codes to work. Simple as that.

    When I place the short code into a page, it doesn’t build a column, it just shows the code. Here, I’ll upload a photo; not at the bottom of the picture:

    Example of column short codes not working

    #698506

    Hi,

    Understood :)
    Login credentials are not working for me. Can you please check them once again?

    Best regards,
    Yigit

    #698510

    Just tested both WP and FTP and both worked. Details in private:

    #698541

    Hi,

    Sorry for the confusion. It was a misunderstanding from the start. For the changes you would like to make, you do not need to add shortcodes.js file to your child theme.

    I edited the shortcode. Please review your website now :)

    Best regards,
    Yigit

    #698542

    So sorry if the confusion was on my end (likely). :-)

    I was using a button on my toolbar that allowed me to insert column shortcodes, and I think I assumed it was from Enfold. I see the code you wrote. Is there a simple way to insert that code in the future? Or is it a manual coding job?

    Thanks for your help!

    #698544

    Hi :)

    You can enable debugging mode to see shortcodes you have created in pages using Advanced Layout Builder – http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/

    Or, You can switch to Default Editor and click on Magic Wand to see full list of shortcodes http://i.imgur.com/n4KXkdm.jpg
    then you can create any of them and copy/paste shortcode into any other content element or into text widget.

    Best regards,
    Yigit

    #698560

    One final question…

    Why does my Magic Wand have so few shortcodes? Take a look…

    shortcodes

    #698692

    Hi,

    It has only few for text editor because some of the shortcodes may break the layout. My previous post is the workaround you should use if you would like to insert shortcodes into shortcodes (shortcodeception? ;D)

    Best regards,
    Yigit

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.