Forum Replies Created
-
Author
-
sashaDParticipant
Hi, I have been working on local version, i will upload live to test domain, and then provide you with details, by the end of today.
many thanks
SashasashaDParticipantHi Radu,
I tried this plugin yesterday, and did not like it. Considering that whole website is done and all sidebars already allocated, i dont want to add a whole other plugin and recreate same sidebars again just for the three archives. I would rather edit the custom archive templates, i just thought there is a simple known edit for current kleo archive of posts, as there have been many people asking how to set custom sidebar to archive.Previous code snippet worked, just not 100%, i would rather try to edit that or the whole archive, are there any other known solutions to this?
Best regards,
SashasashaDParticipantHi Radu,
thank you for a quick response, I have tried this and it works but i have the same issue as the original guy asked. which is:
1. is it possible to get rid of the original sidebar? because it still shows, (even when in theme options i chose 1 column right- i see two sidebars, if i select 2 columns right- i see three sidebars, if i select full width, it doesn’t work at all – a whole bunch of white space shown below the items in archive)
2. is it possible to ensure the bar appears on the left correctly.i attached img just in case to clarify my situation
Attachments:
You must be logged in to view attached files.sashaDParticipantHi,
this limits the width of carousel, but does not solve the issue of image width in that carousel.problem is that when there is not enough images at set size e.g. 300×200 within the carousel, these images start to be stretched out to fill in the carousel. thus if I have just one image, it will stretch out 100% to fill in the carousel at what ever screen size its viewed. Theoretically i should be able to target that image with “max-width: ..px” and ensure it never goes over certain amount of pixels. But no matter what i did i can not seem to achieve this.
All css targeting works, i.e. i can put “border” around img(s) in the carousel just fine, but when i try to declare “max-width: 300px;” it doesnt work. I think by default its because css is set to images being “max-width:100%;”… i tried “max-width: 300px !important;” but that still does not influence the behavior of images in the carousel.
Hopefully you can look into this and come up with some advice. At this point now I am even thinking that maybe we edit the function where we get images attached to echo shortcode only of there are more than 3 images attached.
Thanks again @Radu, i know we will kick its ass!
sashaDParticipanthi, so I played around with Visual Composer at the front end, and realized that because carousel itself is set to take 100% within a post, when there is only one image in carousel it stretches it out, same goes for 2 images, i think it only starts looking nice at three or more images in carousel.
I tried to edit the whole carousel in css, but ended up realizing that somehow i must keep the carousel as is, and its responsive inherently and just target the images within that carousel to be 400×200, which for some reason doesnt work when there is less images than needed to take up the space, i.e. 1 or 2 images.
sashaDParticipanti’ve been playing with visual composer, and in the front end when using VC it all looks right, but once i go out of visual composer and see the post for real, than that one single image is shown full width of post, thought this might help the investigation.
sashaDParticipantHello @Radu,
so i spent last few days testing and trying to see why i can not make it work, and realized where there might be an issue: basically to render images related to post in a kleo carousel i use the code you had supplied:
function GetCurrentAttachmentIDs() {
$GetAttchmentIDS = implode(‘,’, array_keys(get_attached_media( ‘image’, get_the_ID() )));
return do_shortcode(‘[vc_images_carousel images="'.$GetAttchmentIDS.'" img_size="400x200" autoplay="yes" min_items="3" max_items="10"]‘);
}add_shortcode(‘attachmentID’,’GetCurrentAttachmentIDs’);
and then just add this in my php:
< ?php echo do_shortcode( ‘[attachmentID]’ ); ?>
and this works great, except there is an issue if user only uploads one image (when there is only one single image related to the post), this image is rendered at full width and not “400×200”. Can you please help me edit this, so when there is only one image it doesnt go full width.
MANY THANKS IN ADVANCE!!!
best regards
SashasashaDParticipantproblem is… when i change view like mobile, or make window smaller, the image takes up 100% again, and thus is huge.
how do i target it properly, or make it smaller as initially asked?
sashaDParticipantP.S. I have used
img.attachment-kleo-full-width {
width: 35%;
}and it seems to work, but i just wanted to confirm that this selector only selects the images which are “Post Featured Images” and no other images, i.e. just those added as featured images in post creation process
November 5, 2015 at 20:05 in reply to: using existing plugin for image carousle in new template #85788sashaDParticipantOnce again BIG THANK YOU @Radu
all working great,
MAY U HAVE A GREAT WONDERFUL DAY!!!November 5, 2015 at 18:51 in reply to: using existing plugin for image carousle in new template #85763sashaDParticipantDear Radu,
THANK YOU VERY MUCH! i can not show gratitude enough, as i was stuck with this thing for ages, trying to work it out myself not realizing i could ask you guys.Just a quick follow up question, how could i edit it, so that the carousel only shows when there are actual images associated with the post- so when there is no images, the carousel doesnt pop up (right now even posts without images have a carousel with blank boxes)?
all the best
SashaNovember 4, 2015 at 21:59 in reply to: using existing plugin for image carousle in new template #85647sashaDParticipantHi Radu,
Thank you for reply, but your answer is for putting an individual carousel per post by hand with fixed images.
as I mentioned, I need to integrate a carousel into a template, i.e. into a single-custompost.php template, so that my custom single posts in child theme have a carousel of images associated with the relevant post.
e.g. it’s a listings website, and each custom post is a listing, and each listing has a carousel of images associated with that post.
Look forward to hearing from you,
best regards
SashasashaDParticipantsashaDParticipantDear fundlr,
could you please share how u made a “custom post-content-carousel”, I am trying to add a carousel of my own custom content in my custom posts templates i created, but i have hard time finding how to put carousel into my custom single-post php template.
Maybe you could just post that part with ur own content so i could compare it with kleo default template.
many thanks in advance for what ever you reply.
sashaDParticipantDear fundlr,
could you please share how u made a “custom post-content-carousel”, I am trying to add a carousel of my own custom content in my custom posts templates i created, but i have hard time finding how to put carousel into my custom single-post php template.
Maybe you could just post that part with ur own content so i could campare it with kleo default template.
many thanks in advance for what ever you reply.
November 3, 2015 at 13:20 in reply to: using existing plugin for image carousle in new template #85460sashaDParticipantHello? it’s been a weak since i asked a question, and no one has replied.
October 30, 2015 at 20:55 in reply to: using existing plugin for image carousle in new template #85127sashaDParticipantHi, thanks, look forward to reply.
sashaDParticipantwow! prompt response with solution and it works! THANKS ANDREI, i usually stopped expecting such help from other theme providers, but you guys at 7th queen run it like Pros! thank you!!
just a quick follow up question: if i want to add another two custom icons do I copy/paste the whole code again for each icon, or just the middle part?
COPY CODE$icons .= '<li><a target="_blank" href="put-your-rss-url-here" rel="nofollow"><i class="icon-rss"></i><div class="ts-text">RSS</div></a></li>'; return $icons;
-
AuthorPosts