Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #669051

    Hey,

    I want to decrease the Search button in the Car Rental widget –
    http://www.idtraveller.com

    What code shall I add?

    Cheers
    Charlotte

    #669057

    Hey Charlotte!

    Please add following code to Quick CSS

    .search-panel .button {
        width: 50%;
    }

    Best regards,
    Yigit

    #669062

    Hey… thanks but I see no change..

    #669066

    Hi!

    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!
    Yigit

    #669069

    Yes, of course :)

    #669076

    Hey!

    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,
    Yigit

    #669127

    Ok, thanks :) I will do that later on.

    Have a nice weekend.

    #669138

    Hey!

    Thanks Charlotte! You guys too have a nice weekend!
    We will keep the thread open and will wait to hear from you :)

    Regards,
    Yigit

    #669450

    Hello again,

    I have added the code now to the functions.php file but I don’t see any difference.

    #669466

    Hi!

    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!
    Basilis

    #669479

    Nop… it the same wide width on the search button

    #669493

    Hi,

    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,
    Yigit

    #669715

    Yes, I did but no difference…

    #669879

    Hey!

    Embed code is not letting the styles to be overwritten. I will try further using some cheats but i am afraid that might help. I will keep you updated.

    Cheers!
    Yigit

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