-
AuthorPosts
-
June 8, 2015 at 11:55 am #455991
Hi i want to position an image half or complete outside the content area. Somewhat like in the screenshot. I want to place a guarantee button there.
How could i do that?
Kind Regards, Simon
June 8, 2015 at 12:39 pm #456020Hey simonac!
Could you put the button somewhere on the site so we can help you out with some CSS?
Cheers!
RikardJune 8, 2015 at 3:58 pm #456154This reply has been marked as private.June 9, 2015 at 7:29 am #456475Hi!
Please remove the image element with the “guarantee” badge. Add this to the functions.php file:
add_action( 'ava_after_main_container', function() { echo '<img class="avia_image guarantee-image" src="http://neu.shk-schaefer.de/wp-content/uploads/2012/11/Button.png" alt="" title="Button" itemprop="contentURL">'; });Use this in the Quick CSS field to adjust the position of the image:
.guarantee-image { position: absolute; z-index: 10000; top: 20%; left: 10px; width: 150px; height: auto; }Cheers!
IsmaelJune 9, 2015 at 10:39 am #456577Hi Ismael, the code works.
But it is not workable because on different screen sizes it has different positions. Is it possible to have the image fixed at a position? Like in The screenshot?
Or is there a plugin you can recommend for this purpose?
Thanks Simon
June 10, 2015 at 5:10 am #456976Hi!
I can’t see the image on your site, did you remove it? We might have to tweak the CSS a little bit to make it look good on all screen sizes.
Regards,
RikardJune 10, 2015 at 12:20 pm #457139This reply has been marked as private.June 10, 2015 at 2:14 pm #457214Hey!
Please enable custom CSS field for ALB elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and then give your image a custom class and then add following code to Quick CSS
.your-custom-class { position: relative; left: -45%; overflow: visible; } #main { overflow: visible!important; }Regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.
