-
AuthorPosts
-
January 20, 2018 at 12:02 am #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/i2vbae2-How i can add button on side bar and customization for that button ?
Regards,
Ghallab-
This topic was modified 7 years, 9 months ago by
Ghallab.
January 20, 2018 at 8:55 am #900043Hey 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,
VictoriaJanuary 20, 2018 at 10:37 pm #900212Hi 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,
GhallabJanuary 24, 2018 at 2:52 am #901812Hi,
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,
IsmaelJanuary 24, 2018 at 3:36 pm #902186Hi Ismael
Thank you for your support “side bar working perfect now ”
but how can i generate button shortcode
Regards,
GhallabJanuary 25, 2018 at 6:11 am #902580 -
This topic was modified 7 years, 9 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
