Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #816076

    Hello
    I have edited the caption in the slider to look like how the graphic team has made the brochure, ie, with an arrow at the edge of the border –

    .caption_bottom .slideshow_caption {
    background: url(“img/arrowLeft.png”) no-repeat bottom right;
    }

    I’d like to be able to adjust the location of the actual background – right now I’m tricking it to have a blank space under the arrow itself in the png file. I’d like to be able to move it up and down a bit, ie, padding or margins?

    Also, I’d like to be able to add the arrow to the captions in the regular image , which you can see in the 3 up grid, plus also in the masonry grid.

    I’ve tried different thinfs but it’s hard to pint point exactly where to make the change. Maybe a bofre or after the actual text would work better? Thanks so much! :)

    #816167

    Hey webWahine,

    You can find all the properties you can apply to background image here: https://www.w3schools.com/cssref/css3_pr_background.asp. I’m not sure exactly what value you would have to apply, just try to play around with them until you find the right one :-)

    Best regards,
    Rikard

    #816400

    Hi Rikard

    Yes, I understand how to set the properties; my question is what is the correct syntax to apply it to both of the following, just like I did for a fullwidth slider, as per above –

    An image
    A masonry gallery item

    thanks!

    #816429

    Actually, now that I am pondering this some more, on some sliders I want the text to be aligned right, and aligned left in others so I’d like to know how to pinpoint adding in the arrow to sit within a div associated with the caption text itself.

    So, something like this, using the existing fullwidth slider example at the top of the page –

    In my css – you’ll see that this works but I will need to also set the arrow to be lower left, facing right for the left aligned text

    .caption_bottom .slideshow_caption {
    	background: url("img/arrowLeft.png") no-repeat bottom right;		
    }

    So if I add in a div here in my fullwidth slider –

    Caption Title
    Enter a caption title for the slide here
    <div id=”alignR”>INTELLIGENT LIVING PROUDLY<br>PRESENTED BY INTERGULF</div>

    #alignR {	
    	text-align: right;
    	background: url("img/arrowLeft.png") no-repeat bottom right;		
    }

    You’ll see that the arrow is sitting top right, not lower left, and getting cut off. Is there possible a better way to handle this, please?

    Also, what I need is how to apply the same thing to an image and a masonry grid item :)

    #817998

    Not meaning to bump but I’m hoping for a reply soon, please :) I need to get this site done soon.

    #818211

    Hi webWahine,

    Try cutting the image to have just the arrow, without all that space at the bottom.

    Best regards,
    Victoria

    #818293

    Yes, that is better. I’m still not able to move the h2 over; here is my code –

    .caption_bottom .slideshow_caption #alignR {
    	background: url("img/arrowLeft.png");
    	background-repeat: no-repeat;
    	background-position: top right;
    	margin-right: -50px;
    }
    
    .caption_bottom .slideshow_caption .slideshow_inner_caption .slideshow_align_caption #alignR {
    	text-align: right;
    }
    
    .caption_bottom .slideshow_caption .slideshow_inner_caption .slideshow_align_caption #alignR .slideshow_caption h2 {
    	padding: 10px 100px 0 0 !important;
    }
    

    I need the aligned right text to be moved over to the left 100px so it’s not jammed up against the arrow and edge of the screen, and can’t seem to target just that element.

    Once I have this done I still need to know which elements need to be targetted for the masonry and images, please :)

    #818308

    Hi,
    It looks like line 631 in your custom css has this:

    .caption_bottom .slideshow_caption h2 #alignR {
    	padding: 10px 60px 0 0 !important;
    }

    change the 60px to 160px to add 100px :)

    Best regards,
    Mike

    #818314

    Hi Mike
    Yes, I’ve figured out 2 of the 3 elements! I’m including all of ym code to help others but the arrow in the masonry, at the bottom of this post isn’t quite right yet, so I need a bit of feedback for that last item that is eluding me :)

    This is for the fullwidth slider, both left and right, using a div id in the captions –

    /* align right */
    
    #alignR {	
    	text-align: right;
    }
    
    .caption_bottom .slideshow_caption #alignR {
    	background: url("img/arrowLeft.png");
    	background-repeat: no-repeat;
    	background-position: top right;
    	margin-right: -50px;
    }
    
    .caption_bottom .slideshow_caption .slideshow_inner_caption .slideshow_align_caption #alignR {
    	text-align: right;
    }
    
    .caption_bottom .slideshow_caption h2 #alignR {
    	padding: 10px 60px 0 0 !important;
    }
    
    /* align left */
    
    #alignL {	
    	text-align: left;	
    }
    
    .caption_bottom .slideshow_caption #alignL {
    	background: url("img/arrowRight.png");
    	background-repeat: no-repeat;
    	background-position: top left;
    	margin-left: -50px;
    }
    
    .caption_bottom .slideshow_caption .slideshow_inner_caption .slideshow_align_caption #alignL {
    	text-align: left;
    }
    
    .caption_bottom .slideshow_caption h2 #alignL {
    	padding: 10px 0 0 60px !important;
    }
    

    This is for the arrow in an image used in the 3 col grid –

    .av-image-caption-overlay-center {
    	background: url("img/arrowRight.png");
    	background-repeat: no-repeat;
    	background-position: bottom left;
    	text-align: left;
    	padding: 0px 20px 20px 60px;
    	vertical-align: bottom !important;
    }
    
    .av-image-caption-overlay-center p {
    	text-transform: uppercase;
    	color: #fff;
    	font-size: 22px;
    	line-height: 22px;
    	text-shadow: 2px 2px 4px #000;	
    }
    

    And finally this is for a specific item in the masonry grid, but this one is not quite right yet, as you can see –

    /* add arrow to specific items */
    
    #av-masonry-1-item-204 .av-masonry-entry-content.entry-content {
    	background: url("img/arrowLeft.png");
    	background-repeat: no-repeat;
    	background-position: bottom right;
    	padding: 50px 0px 20px 0px;
    	margin-right: -10px !important;
    }

    I need to move the text over to the left but perhaps instead of adding the arrow into the same div as the caption I should go up one element?

    Thanks again :)

    #818393

    Hi,
    Sorry I was unable to find that element, please add a screenshot with more detail as what you would like :)

    Best regards,
    Mike

    #818467

    Sorry, I kept working on it so changed some elements, and I think I have it now unless you think there is a better way to do this? It’s the 3rd image in the masonry grid, the one with ‘EMPIRE’

    /* add arrow to specific items */
    
    #av-masonry-1-item-242 .av-masonry-entry-content.entry-content {
    	background: url("img/arrowLeft.png");
    	background-repeat: no-repeat;
    	background-position: center right;
    	padding: 50px 50px 45px 0px;
    	margin-right: -21px !important;
    }

    Then style the text using this element –

    /* titles over images */
    
    .av-masonry-entry-content.entry-content {
        font-family: 'AndesLight';
        font-weight: normal;	
    	text-transform: uppercase;
    	font-size: 22px;
    	/* line-height: 32px; */
    	letter-spacing: 2px;
    	text-shadow: 2px 2px 4px #000;
        color: #fff !important;
        opacity: 1 !important;
    	text-align: right;		
    }
    #818469

    Hi,
    It looks good, and your code seems solid, I can’t think of any changes :)
    Well done on your site! Shall we close this?

    Best regards,
    Mike

    #818471

    Thanks, Mike. I like to try and work things out myself, ie, learn as I progress rather than having you do all the work :) I also like to share my code so that others can find quick answers. Yes, we are done for now, although I do have one other quick question –

    The ‘REGISTER’ button, top right in the secondary menu is sitting above the 8px white border that is on the main wrapper for the entire page. How do I specify a z-index to have it sit under the page border, or is that the easiest way to do it? :)

    #818491

    Hi,
    How about this:

    #menu-item-20.menu-item-20 {top: 10px!important; }

    Best regards,
    Mike

    #818883

    Worked perfectly! Thanks so much :)

    #818902

    Hi,

    We’re glad that Mike was able to help you! If you have any other questions or issues, please feel free to open a new topic, and we will do our best to assist you.

    Thank you for using Enfold.

    Cheers!
    Sarah

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Add a small image (icon but not a font) into caption areas’ is closed to new replies.