New Landing How can we help? Themeforest Theme Support Joyn SPB > Image > Image caption : line break

Viewing 7 posts - 46 through 52 (of 52 total)
  • Posted in: Joyn
  • #215703
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    I changed the media.php and the page-builder.css located in the Swift Framework plugin. Do a backup of those files.

    Swift-framework/includes/page-builder/shortcodes/media.php
    Swift-framework/includes/page-builder/assets/css/page-builder.css

    We will need to check the best way to integrate this in the Swift Framework because the existing captions of the customers sites so we don’t lose any data.

    -Rui

    #215723
    mengeco
    Member
    Post count: 558

    Thank you very much

    To perform the updates to the theme, I would have to know what are the lines of code that have been changed in this php file :
    Swift-framework/includes/page-builder/shortcodes/media.php
    Swift-framework/includes/page-builder/assets/css/page-builder.css

    #215725
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    In the page-builder.css I just added this code.

    .spb_image .content{
      display:none;
    } 

    I replaced the previous Image caption field settings around line 405
    https://www.dropbox.com/s/sio0re76xggwz8h/Screenshot%202015-09-23%2012.18.12.png?dl=0

    array(
                    "type"        => "textarea_html",
                    "holder"      => "div",
                    "heading"     => __( "Image Caption", 'swift-framework-plugin' ),
                    "param_name"  => "content",
                    "value"       => "",
                    "description" => __( "If you would like a caption to be shown below the image, add it here.", 'swift-framework-plugin' )
                ),

    I also added this code around line 139
    $caption = $content;

    https://www.dropbox.com/s/5oz1hauz5ldgr0a/Screenshot%202015-09-23%2012.20.07.png?dl=0

    -Rui

    #216413
    mengeco
    Member
    Post count: 558
    This reply has been marked as private.
    #216450
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    This change that I made was done in the Swift Framework plugin and not in the theme files.

    The problem is that was necessary to change a field name and this will cause problems in the existing content of the others customer pages, and it’s not easy and fast at the moment to provide a solution that works 100% for the old shortcode format and for the new one that I created for your site.

    I will provide you some code so you can add it to your child theme and have that modified version of the Single Image asset, so you don’t have to worry with the updates.

    Later today or in Monday I will provide it to you.
    Thanks

    -Rui

    #216462
    mengeco
    Member
    Post count: 558

    It’s real friendly, I appreciate;)
    Thanks Rui

    #216464
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Rui

Viewing 7 posts - 46 through 52 (of 52 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register