-
AuthorPosts
-
October 7, 2016 at 10:22 pm #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? :-)
October 8, 2016 at 1:31 am #696766Hey TimTimothy!
Please refer to this post – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Best regards,
YigitOctober 8, 2016 at 1:56 am #696774OK…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…October 10, 2016 at 1:01 pm #697274October 10, 2016 at 8:00 pm #697530Here you go…
October 11, 2016 at 2:43 pm #697883Hi,
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,
YigitOctober 11, 2016 at 7:08 pm #698009Still 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
October 12, 2016 at 3:18 pm #698334Hi 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,
YigitOctober 12, 2016 at 6:58 pm #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:
October 12, 2016 at 8:01 pm #698506Hi,
Understood :)
Login credentials are not working for me. Can you please check them once again?Best regards,
YigitOctober 12, 2016 at 8:09 pm #698510Just tested both WP and FTP and both worked. Details in private:
October 12, 2016 at 10:03 pm #698541Hi,
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,
YigitOctober 12, 2016 at 10:08 pm #698542So 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!
October 12, 2016 at 10:11 pm #698544Hi :)
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,
YigitOctober 12, 2016 at 11:18 pm #698560One final question…
Why does my Magic Wand have so few shortcodes? Take a look…
October 13, 2016 at 1:22 pm #698692 -
AuthorPosts
- You must be logged in to reply to this topic.
