Visual Composer customization - by poissonplume

This topic has 7 replies, 3 voices, and was last updated 10 years ago ago by Stan Russell

  • Avatar: poissonplume
    poissonplume
    Participant
    April 9, 2015 at 23:41

    Dear support,

    I would like to change a standard behaviour of Visual Composer.
    Actually, in the “single image” item, I would like to display the title below the image (and not above it, which is the standard behaviour).

    In order to achieve so, I checked the VC documentation. It explains that I should create a folder “vc_templates” in my child theme folder, and copy the template from VC (in my case : vc_single_image.php) in order to be able to apply some changes in it.

    My issue is that this process is not working… The subfolder is not called by VC. I also realized that the standard folder from VC (/wp-content/plugins/js_composer/composer/shortcodes_templates) is not called neither.

    Can you please tell me how your theme calls the VC plugin, and, even more important, how can I customize VC while using the Legenda theme?

    Many thanks in advance,
    Nathalie

    6 Answers
    Avatar: poissonplume
    poissonplume
    Participant
    April 11, 2015 at 15:25

    Dear support,
    There has not yet been any answer to this topic. I am pushing it up. Can you please have a look?
    Many thanks,
    Nathalie

    Avatar: Eva
    Eva Kemp
    Participant
    April 12, 2015 at 11:00

    Hello,

    VC customizations are written in the file wp-content/themes/legenda/framework/vc.php.
    Please show a screenshot what exactly you want to modify.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: poissonplume
    poissonplume
    Participant
    April 12, 2015 at 21:35

    Thanks Eva for your reply.
    Basically, I would like, in your function vc_theme_vc_single_image (located in vc.php), to change your code :

    $output .= "\n\t\t\t".wpb_widget_title(array('title' => $title, 'extraclass' => 'wpb_singleimage_heading'));
    $output .= "\n\t\t\t".$image_string;

    into this code :

    $output .= "\n\t\t\t".$image_string;
    $output .= "\n\t\t\t".wpb_widget_title(array('title' => $title, 'extraclass' => 'wpb_singleimage_heading'));

    This means I would just like to reverse the order of these two lines. I tried to achieve this directly into vc.php, and it does the job.
    However, I would like a more robus way to achieve this (ie. a way that would not be erased as I update the theme). If I copy your function vc_theme_vc_single_image into the functions.php of my child theme, the website crashes.
    As far as I see, there is no hook in your function that could help me.

    How do you recommand to achieve this ?

    Many thanks,
    Nathalie

    Avatar: Eva
    Eva Kemp
    Participant
    April 13, 2015 at 16:56

    Hello,

    You need create framework folder in the child theme directory and copy modified vc.php file in there. Please read in the article:
    http://codex.wordpress.org/Child_Themes > Referencing / Including Files in Your Child Theme

    Regards,
    Eva Kemp.

    Avatar: poissonplume
    poissonplume
    Participant
    April 27, 2015 at 23:09

    It works well. Many thanks Eva !

    Avatar: stan
    Stan Russell
    Participant
    April 28, 2015 at 08:45

    Hello,

    you are welcome!

    Regards,
    Stan Russell.

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘Visual Composer customization’' has been successfully resolved, and the topic is now closed for further responses

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.