New Landing How can we help? Themeforest Theme Support Dante Image size client carousel

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Dante
  • #205626
    abeldb
    Member
    Post count: 77

    Hi!
    How are you?

    How can change the size of images for client carousel with my child theme?

    In fact the idea is change the array $client_width = 200; to $client_width = 400;
    in line 95 of dante\swift-framework\page-builder\builder\shortcodes\clients.php
    (rectangular versus square)

    You can see an example of this in -Site/Page URL-
    (now works replacing clients file theme)

    Please, Can you provide me a piece of code for change in functions child theme?
    Or other solution to adjust/fix out of Dante theme updates

    Thank you very much in advance.

    #205992
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @abeldb

    I’ll get a filter added so that you can override this in a child theme.

    – Ed

    #206015
    abeldb
    Member
    Post count: 77

    Súper

    I wait for these filter
    Thanks

    #206100
    abeldb
    Member
    Post count: 77

    Hi!

    In other way but in the same file,
    can I force clients link target to _self?

    Thanks a lot!


    Maybe it’s easy a bit code for replace clients.php file via child theme functions.php ?

    #206745
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    The window will always open in _self if the below option is checked within a single Client post.

    Meta Options => Client Meta => Link to same window.

    Thanks.

    #206767
    abeldb
    Member
    Post count: 77

    Hi David!

    Yes I know, inside each edit client under Meta options,
    but I have 69 clients in 3 languages (and almost all have link),
    so I have activate link to same window around 207 times!

    There is another way to do it in bulk or inside client.php file?


    Any news about the filter?

    #206775
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    No, _self is set as default option for the Clients post type. By default all windows will open in _self.

    Take a look at the file: swift-framework/page-builder/builder/shortcodes/clients.php Line 123.

    Thanks.

    #206833
    abeldb
    Member
    Post count: 77

    Hi David,

    Yes about the original file, it’s true.

    I’m not sure about this functionality:
    the Client Meta says: “Check this box to set the client link to open in the same browser window/tab.”
    by default I don’t know if checkbox it’s active.
    In all my clients it’s deactivated, since it was created (Dante theme first releases).

    Do you know a way to change it in bulk?

    #207187
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    What is your current version?

    You could force it, in the file mentioned above, please change this:

    $items .= '<a href="'.$client_link_url.'" target="'.$target.'"><img src="'.$image[0].'" width="'.$image[1].'" height="'.$image[2].'" alt="'.$image_alt.'" /></a>';

    To this:

    $items .= '<a href="'.$client_link_url.'" target="_self"><img src="'.$image[0].'" width="'.$image[1].'" height="'.$image[2].'" alt="'.$image_alt.'" /></a>';

    Thanks,
    David.

    #207392
    abeldb
    Member
    Post count: 77

    Hello David!

    My system have now: Dante v.3.11 + WordPress v.4.3

    Yes, that’s the way to force links in _self!
    another alternative is change $target = "_blank"; to $target = "_self"; in line 107.

    Ok, perfect.


    Related to the original thread:

    Now, my file client.php is replacing the file of main theme, but it’s not the best way,
    because it can be overwritten in next updates.

    (with lasts versions of Dante, the files of folder shortcodes loads automatically)

    Can you please provide me a piece of code for replace this file (out of Dante theme updates)
    via functions.php child theme or other way?

    Thanks a lot in advance!

    #207843
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    This is a bit tricky to explain, so I have included my working child theme with the request changes. Hopefully you can either use this or merge my changes with yours.

    Steps are:

    1) Remove client asset in functions.php from the Page Builder
    2) Create the new clients_custom.php to replace the original clients.php in the child theme shortcodes folder.
    3) In the functions.php file loop through any shortcode files added to shortcodes and register these as new page builder assets.

    Thanks,
    David.

    Attachments:
    You must be logged in to view attached files.
    #209834
    abeldb
    Member
    Post count: 77

    Hello David!

    Sorry for my late reply, I did not get the email alert. That’s it!


    Wow!
    It’s perfect, the solution to replace this file from child theme.
    It’s just what I wanted, fantastic!

    Great trick, thanks at all!
    Very thankful!!

    #209893
    David Martin – Support
    Moderator
    Post count: 20834

    No problem, glad it helped you 🙂

    – David.

Viewing 13 posts - 1 through 13 (of 13 total)

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

License required for the following item
Login and Registration Log in · Register