Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Image size client carousel
New Landing › How can we help? › Themeforest Theme Support › Dante › Image size client carousel
- This topic has 12 replies, 3 voices, and was last updated 9 years by David Martin – Support.
-
Posted in: Dante
-
August 20, 2015 at 4:19 am #205626
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 updatesThank you very much in advance.
August 21, 2015 at 12:12 am #205992August 21, 2015 at 1:13 am #206015Súper
I wait for these filter
ThanksAugust 21, 2015 at 10:28 am #206100Hi!
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 ?August 24, 2015 at 1:54 pm #206745Hi,
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.
August 24, 2015 at 2:23 pm #206767Hi 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?August 24, 2015 at 2:29 pm #206775Hi,
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.
August 24, 2015 at 4:04 pm #206833Hi 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?
August 25, 2015 at 12:15 pm #207187Hi,
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.August 25, 2015 at 5:58 pm #207392Hello 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!
August 26, 2015 at 6:03 pm #207843Hi,
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 newclients_custom.php
to replace the originalclients.php
in the child themeshortcodes
folder.
3) In thefunctions.php
file loop through any shortcode files added toshortcodes
and register these as new page builder assets.Thanks,
David.Attachments:
You must be logged in to view attached files.September 2, 2015 at 4:06 pm #209834Hello 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!!September 2, 2015 at 6:50 pm #209893No problem, glad it helped you 🙂
– David.
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.