Useless margin bottom on editor
-
Could you please replace in css/main.css line 8 :
.wphostel-form>div:not(.wp-editor-tools)
by
.wphostel-form>div
-
I don’t understand what you mean. If I do this the margin doesn’t disappear.
I know I should start my own trend, as I have the same problem, but this is what I noticed. The line comes with this code
.ui-datepicker { padding: 0.2em 0.2em 0; width: 17em; }
when I hanged the codes to this
.ui-datepicker { padding: 0em 0em 0; width: 0em; }
The line is still there!! Is their a way you can remove it please? Great plugin by the way
Hello, I’m trying to build a website were clients can reload or top up their mobile phones and pay me for this service. Do any one know required plugins to get this done. I will really appreciate any answer.
@prasunsen :
I don’t explain the problem, it’s my fault…For exemple in the page : wp-admin/admin.php?page=wphostel_rooms&action=add
There is a unnecessary margin bottom under Visual/Text tabs, under the add media button, and under each line of the editor.
I’m using Chrome latest version, do you get the same issue ?
@marvelycious : about the datepicker, using Hostel plugin I make some override on the billing form because the jquery ui css is outdated (and make some css bugs) compare to the version that WP is using now. I also build a little method that load the jquery-ui-datepicker-i18-* where * is the current local. I will post it in a different thread.
In your case I think that you have to make some custom css to feet your need using this plugin.@jeremy12: off topic
@prometee thanks so much. I will look forward to the trend. So far no matter what I try, the ugly line at the end of the page doesn’t go away!
@marvelycious in my project it make a blank white bg div on the left of the screen. Updating jquery ui css the bug disappear.
@jeremy12: It is considered impolite to interrupt another poster’s ongoing thread with a completely unrelated question of your own. As per the Forum Welcome, please post your own topic.
And when you inspect it with HTML tools what the id and classes of this div ?
@prometee I know what you mean, but making the proposed change does not help, at least on my end.
Ok, is there a cleaner way to build form in the admin part using existing css class and form structure ?
I never search for best practices on how making WP admin forms.
@prometee here’s what i got
<div class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" id="ui-datepicker-div"></div>
I have the same div, updating the version of jquery ui css it solve the bug. Can you make a functions.php file in you template and dequeue the stylesheet doing this
add_action('wp_loaded', 'replace_jquery_ui_css'); function replace_jquery_ui_css() { wp_dequeue_style('jquery-style'); wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css'); }
This is quick and dirty I think there is other ways to do that
@prometee. I am a bit of a dummy here (lol) I located the function .php file on my theme, so I just need to add these codes you provided to it?
- The topic ‘Useless margin bottom on editor’ is closed to new replies.