When using the visual composer, the shortcodes defined by the theme (such as the counter) etc. do not appear. They don't appear either under settings>visual composer. Am I missing something ?
Could you please send me temporary access to your WP so I could check there what is going on? Send it here on forum via private message(click on my nick and there you will find option "Send Air a Message"). In message please attach link to topic it applies to.
It seems as if the shortcodes are not being registered by wordpress. If I try and place something like this [a13_title_with_icon title="Responsive and Retina Ready" title_size="h4" bold="1" a13_fa_icon="laptop" icon_color="sky" title_align="center"] it is not interpreted accordingly
Oooo localhost. OK, so when you will have possibility test it on Some public server.
Our extensions to theme are registered two way, so you can check is it included properly(of course if you know PHP):
-wp-content\themes\blame\advance\plugins\js_composer_mod\config.php Here are all things about parameters of shortcode, but I assume this file is just fine
-wp-content\themes\blame\advance\plugins\js_composer_mod\shortcodes_classes.php we include this file and VC interprets it and register such shortcodes like classes names. I suspect that here can be problem and it is either loaded too late or not loaded at all.
Do you use our version of builder(VC) or you had it installed previously or something?
It seems first of all the config file wasnt being accessed. so in js_composer.php i changed the require_once to require_once (A13_TPL_DIR.'/advance/plugins/js_composer_mod/config.php');
This eliminates the wp widgets however it seems when it reaches the vc_map part it stops....continuing to investigate
The version i'm using of visual composer is that bundled with your solution
-- also changed vc_set_template_dir to //templates dir
vc_set_shortcodes_templates_dir(A13_TPL_DIR.'/vc_templates/');
since the other is deprecated.
webitstudios said: This eliminates the wp widgets however it seems when it reaches the vc_map part it stops....continuing to investigate
If it now make changes then check settings of visual composer and check if A13 shortocodes can be activated.
webitstudios said: -- also changed vc_set_template_dir to //templates dir<br>vc_set_shortcodes_templates_dir(A13_TPL_DIR.'/vc_templates/');<br> since the other is deprecated.
Noticed this just few minutes ago, thanks for tip :-)
So on your example it looks like I should change all require_once to have absolute paths. I will remember this and scan through all files. Thanks for tip!
Did you also edit this require_once ('shortcodes_classes.php');?
I did not edit that one as for some reason it seems it was accepting the relative path. It was only when it came to running the config file that it needed an absolute path.
Edit: I think I understand. Config is called later then it is declared and maybe on some servers it changes way where it searches for config.php file first. It seems possible for my logic;-) Will give it closer look.
You mean on plugins list? Or on list of Visual composer shortcodes? We are going around and I can get enough information from your answers:-)
Could you please send me temporary access to your WP so I could check there what is going on? Send it here on forum via private message(click on my nick and there you will find option "Send Air a Message"). In message please attach link to topic it applies to.
Comments
I heard about some plugins that somehow messes up our customizations to Visual Composer. Try deactivating plugins like explained here http://support.apollo13.eu/discussion/12/before-you-ask-read-this-#theme-debbuging
With regards.
Could you please send me temporary access to your WP so I could check there what is going on? Send it here on forum via private message(click on my nick and there you will find option "Send Air a Message"). In message please attach link to topic it applies to.
With regards.
Our extensions to theme are registered two way, so you can check is it included properly(of course if you know PHP):
-wp-content\themes\blame\advance\plugins\js_composer_mod\config.php
Here are all things about parameters of shortcode, but I assume this file is just fine
-wp-content\themes\blame\advance\plugins\js_composer_mod\shortcodes_classes.php we include this file and VC interprets it and register such shortcodes like classes names.
I suspect that here can be problem and it is either loaded too late or not loaded at all.
Do you use our version of builder(VC) or you had it installed previously or something?
With regards.
add_shortcode
should be done by VC when it will find classes registered in second file I have mentioned.It seems first of all the config file wasnt being accessed. so in js_composer.php i changed the require_once to
require_once (A13_TPL_DIR.'/advance/plugins/js_composer_mod/config.php');
This eliminates the wp widgets however it seems when it reaches the vc_map part it stops....continuing to investigate
The version i'm using of visual composer is that bundled with your solution-- also changed
vc_set_template_dir
to//templates dir vc_set_shortcodes_templates_dir(A13_TPL_DIR.'/vc_templates/');
since the other is deprecated.With regards.
So on your example it looks like I should change all
require_once
to have absolute paths. I will remember this and scan through all files. Thanks for tip!Did you also edit this
require_once ('shortcodes_classes.php');
?With regards.
Thanks.
Edit: I think I understand. Config is called later then it is declared and maybe on some servers it changes way where it searches for config.php file first. It seems possible for my logic;-) Will give it closer look.
testimonial
recent works
recent galleries
should these be loaded as well through the same system?
Use Post grid and Carousel shortcodes for that.
With regards.
I kind of don't know your story and I don't know if you have read all this topic.
Be sure you have activated it in Visual composer options http://apollo13.eu/docs/blame/#!/activate_builder_options
With regards.
With regards.
We are going around and I can get enough information from your answers:-)
Could you please send me temporary access to your WP so I could check there what is going on? Send it here on forum via private message(click on my nick and there you will find option "Send Air a Message"). In message please attach link to topic it applies to.
http://support.apollo13.eu/discussion/12/before-you-ask-read-this-#Item_1
It resulted in this that deactivating plugin UserPro loads our config for Visual composer back again.
But before deleting it, try change in code as described in this post http://support.apollo13.eu/discussion/comment/9874#Comment_9874
File mentioned there can be found in wp-content\themes\blame\advance\plugins\js_composer_mod\
With regards.