• Resolved Huroman

    (@huroman)


    Hi, your plugin is awesome but I’m wondering if it’s possible to modify, without touching the core, the <h4>, <p> and <img> elements.

    I’d like to put the image aside of the text (header and caption) like a testimonial slider:

    IMAGE |    HEADER
               CAPTION
               pager

    I’ve been trying this with not success because <img> affects the CR height.

    Thank you everyone,

    Huriata

    https://www.ads-software.com/plugins/cpt-bootstrap-carousel/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Phil Ewels

    (@tallphil)

    Hi Huriata,

    You should be able to do this purely with custom CSS. The <img> tag will affect the carousel height by default, but you can force a custom carousel height by targeting the surrounding <div> layers.

    Let me know if you need any further pointers with this..

    Phil

    Thread Starter Huroman

    (@huroman)

    Thank you for your lighting answer. I’m working on it right now, I’ll post what I’ve achieve (or not), Phil.

    Thread Starter Huroman

    (@huroman)

    So much thank you for your help, finally I did this:

    .slide {
    				.carousel-inner {
    					padding: 3rem 1.5rem;
    						.item {
    							img {
    								height: 90px; height: 9rem;
    								width: 90px; width: 9rem;
    								margin-bottom: 3rem;
    								margin-right: 3rem;
    								display: inline-block;
    								float: left;
    								position: relative;
    								z-index: 1000;
    								@include box-shadow(10px, $dark-gray);
    								@include box-round(50%);
    							}
    							.carousel-caption {
    								position: relative;
    								bottom: 0;
    								right: 0;
    								left: 0;
    								padding-top: 0; padding-bottom: 0;
    									h4, p {
    										background: none;
    										padding: 0;
    										max-width: 100%;
    									}
    							}	// .carousel-caption
    						}	// .item
    				}
    		}	//	.slide

    With this result hoping it helps to someone :

    IMAGE RESULT

    Plugin Author Phil Ewels

    (@tallphil)

    Brilliant, glad you got it working!

    For clarity, if anyone else reads this – it looks like the above code is written in LESS / SASS or something, not vanilla CSS. So you can’t just copy and paste it straight into your styles.css file.

    Phil

    Thread Starter Huroman

    (@huroman)

    Oh, my fault, I made that using SASS (CodeKit app for Mac), is basically the same CSS but using some variables and SASS features.

    SASS

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customize text and image elements’ is closed to new replies.