Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #899888

    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

    • This topic was modified 6 years, 4 months ago by Ghallab.
    #900043

    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

    #900212

    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

    #901812

    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

    #902186

    Hi Ismael
    Thank you for your support “side bar working perfect now ”
    but how can i generate button shortcode
    Regards,
    Ghallab

    #902580

    Hi,

    Create a temporary page or post then look for the “shortcode generator”, it looks like a wand with a skyblue twinkle. :D

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.