Dears,
1-I need to change the full background starting from header to footer
when i used that code .sidebar{background:#fcfcfc;}
it’s given background for a portion of sidebar not full
https://prnt.sc/i2vbae
2-How i can add button on side bar and customization for that button ?
Regards,
Ghallab
Hey Ghallab,
Could you please attach a mockup of what you’re trying to achieve with the button?
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
Victoria
Hi Victoria
Thank you for your response
here is sample for what i need
1-Button in side bar for company brochure or contact us button
2-Icon for contact info
3-background color for sidebar not for one section i need full background for side bar
Regards,
Ghallab
Hi,
1.) Add a text widget and then use the theme’s button shortcode.
2.) Generate the theme’s icon shortcodes and add it beside the contact info textx.
3.) Add this code in the functions.php file.
// set sidebar height
add_action( 'wp_footer', 'ava_custom_script' );
function ava_custom_script() { ?>
<script type="text/javascript">
(function($){
var a = function() {
var ch = $('.container .av-content-small.units').height();
$('#top #main .sidebar ').css('height', ch);
}
$(window).load(function() {
a();
});
$(window).on('debouncedresize', function() {
a();
});
})(jQuery);
</script>
<?php
}
It will adjust the height of the sidebar based on the height of the main content.
Best regards,
Ismael
Hi Ismael
Thank you for your support “side bar working perfect now ”
but how can i generate button shortcode
Regards,
Ghallab