-
AuthorPosts
-
August 5, 2016 at 4:53 pm #669051
Hey,
I want to decrease the Search button in the Car Rental widget –
http://www.idtraveller.comWhat code shall I add?
Cheers
CharlotteAugust 5, 2016 at 5:09 pm #669057Hey Charlotte!
Please add following code to Quick CSS
.search-panel .button { width: 50%; }
Best regards,
YigitAugust 5, 2016 at 5:20 pm #669062Hey… thanks but I see no change..
August 5, 2016 at 5:29 pm #669066Hi!
Code is not being applied. Do you mind creating a temporary admin login and posting it here privately? So we could look into it?
Cheers!
YigitAugust 5, 2016 at 5:42 pm #669069Yes, of course :)
August 5, 2016 at 6:05 pm #669076Hey!
Embed code is not allowing to overwrite their styles. Can you please try adding following code to Functions.php file that is in wp-content/themes/enfold?
function custom_button_width_css(){ ?> <style> .search-panel .button { width: 50%; } </style> <?php } add_action('wp_head', 'custom_button_width_css');
File is not writable in Appearance > Editor so i could not add it
Best regards,
YigitAugust 5, 2016 at 8:35 pm #669127Ok, thanks :) I will do that later on.
Have a nice weekend.
August 5, 2016 at 9:04 pm #669138Hey!
Thanks Charlotte! You guys too have a nice weekend!
We will keep the thread open and will wait to hear from you :)Regards,
YigitAugust 7, 2016 at 2:20 pm #669450Hello again,
I have added the code now to the functions.php file but I don’t see any difference.
August 7, 2016 at 4:22 pm #669466Hi!
If you try the following function?
function custom_button_width_css(){ ?> <style> .search-panel .button { width: 100px !important; } </style> <?php } add_action('wp_head', 'custom_button_width_css');
Does that make any change, so we can be able to understand where the issue might be located.
Thanks a lot
Cheers!
BasilisAugust 7, 2016 at 4:36 pm #669479Nop… it the same wide width on the search button
August 7, 2016 at 5:06 pm #669493Hi,
Can you please try changing the code to following one
function custom_button_width_css(){ ?> <script> jQuery(window).load(function(){ jQuery('.search-panel .button').css('width','100px'); }); </script> <?php } add_action('wp_footer', 'custom_button_width_css');
Best regards,
YigitAugust 8, 2016 at 9:54 am #669715Yes, I did but no difference…
August 8, 2016 at 4:02 pm #669879 -
AuthorPosts
- You must be logged in to reply to this topic.