Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, this is possible, also with CSS code. For an example, please try https://wordpress.org/support/topic/change-the-search-box-location-and-size?replies=8

    Regards,
    Tobias

    Thread Starter alixheuer

    (@alixheuer)

    Hi,

    Thank you for your quick answer. Unfortunately, this solution doesn’t seem to work on my website. Maybe the classes have changed in the past year ?

    Here is the code I inserted (and my url is http://unespritdefamille.org/base-de-donnees-fondations-et-associations/) :

    #tablepress-id-3_filter {
    	float: none;
    	width: 50%;
    	margin: 0 auto;
    }
    
    #tablepress-id-3_filter input {
    	margin: 0 0 0 10px;
    	width: 100%;
    }
    
    #tablepress-id-3_filter label {
    	width: 100%;
    }

    Thank you for your help!

    Alix

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    as we are dealing with HTML-ID-based CSS selectors here, we’ll have to take a slight difference to previous CSS into account:
    Please remove the “-id” part from the selectors, i.e. use

    #tablepress-3_filter {
    	float: none;
    	width: 50%;
    	margin: 0 auto;
    }
    
    #tablepress-3_filter input {
    	margin: 0 0 0 10px;
    	width: 100%;
    }
    
    #tablepress-3_filter label {
    	width: 100%;
    }

    Regards,
    Tobias

    Thread Starter alixheuer

    (@alixheuer)

    Thank you so much, it is working.

    Last question and then I’ll let you at peace 🙂

    How can I align the button of tablepress-datatables-buttons on the right ?

    Thank you again so much,
    Alix

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    this should work:

    .dt-buttons {
      float: right;
    }

    Regards,
    Tobias

    Thread Starter alixheuer

    (@alixheuer)

    You are the best, thank you so much !

    Regards,
    Alix

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Search box centered above the table’ is closed to new replies.