Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Manage Variations and Customer input label and field width
Tagged: manage label width, Manage variation width
- This topic has 6 replies, 3 voices, and was last updated 11 years, 3 months ago by GWslade.
-
AuthorPosts
-
July 31, 2013 at 11:21 pm #9420GWsladeMember
I would like to make the list of variations and customer input a nice justified table. This would require setting the width of both the label and the field, for both the variations and the customer input.
I found the change to the Custom CSS to manage the variation field width.
.eStore_variation {
width: 140px !important;
}
Works perfect.
I also found the following instructions to change the customer input to a text area.
Search for the following line in the “eStore_button_display_helper.php” file:
<input type="text" name="custom_input" value="" class="eStore_text_input" />
Once you find it replace it with the following (there will be 2 occurrences so change them both):
<textarea name="custom_input" cols="20" rows="3" /></textarea>
I tried to add style=”width: 200px;” to the input, but it did not set the width, i presume it is being over ridden by something else.
I cannot find anything that shows how to set the width for the labels.
I guess because the custom CSS solution works so well for the variation field, could a similar change be made for the other three items?
August 1, 2013 at 1:31 am #56899adminKeymasterThe customer input label and field also has CSS classes attached to them. So you can use them to control the width.
Use the class name “eStore_custom_input_name” for the label
Use the class name “eStore_collect_input” for the custom field
Please post a link to the page where you have it so I can view the HTML in my browser.
August 3, 2013 at 5:05 pm #56900GWsladeMemberThe URL is [http://travelersmobile.com/store/#tabs-1-5]
Maybe I did this wrong
I put the following in my custom CSS file (wp-cart-for-digital-products/wp_eStore_custom_style.css)
.eStore_variation {
width: 140px !important;
}
.eStore_custom_input_name {
width: 140px !important;
}
.eStore_collect_input {
width: 140px !important;
}
the custom input fields did not change.
Also what is the class name for the variation label?
August 4, 2013 at 3:48 am #56901PeterMemberHi,
In addition to your existing css changes – if you also add a float “left” to your code for the variation name it will at least line things up for the labels:
eg:
.eStore_variation_name {
width: 140px;
float: left;
}August 6, 2013 at 4:30 am #56902GWsladeMemberThe Variation Name, custom input name and custom input all show width:auto when I inspect the elements, eve though the width has been set to 140px. Is there something overriding the set width, for these classes?
August 6, 2013 at 7:27 am #56903adminKeymasterUse the !important property on the width like the following:
.eStore_variation_name {
width: 140px !important;
float: left;
}
However that is not the issue in your case. I think you are applying the CSS tweak in the wrong file. Your eStore custom CSS file is empty?
Here is the file where you should be adding those CSS tweaks but it is empty (that explains why it is not working):
August 6, 2013 at 5:50 pm #56904GWsladeMemberI had reloaded the Wp-eStore plugin and blew away my edits in the CSS. Thanks for spotting that. It is working now.
-
AuthorPosts
- You must be logged in to reply to this topic.