tjabalooo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Line Not Aligned Properly In Single Product PagesCould you update the support issue to “resolved” so we all know that you’re a happy camper?
Best regards,
tjabaloooForum: Fixing WordPress
In reply to: Line Not Aligned Properly In Single Product PagesSorry for the delay! Now there’s a new version of the plugin. For some reason the style-script worked once in my environment but then never again. So, I changed tactics and wrote a JS-script instead. It uses jQuery to find all <form class=”cart”… and in them all <div class=”quantity”… and adds the styles mentioned above to those elements.
Custom Align Quantity Field Plugin
This time it should work ??
Forum: Fixing WordPress
In reply to: Line Not Aligned Properly In Single Product PagesJust a quick update on the fact that my plugin didn’t work. I tried it myself today and it doesn’t work anymore. I haven’t a clue (yet) as to why it doesn’t work, but I thought I should tell you ??
Forum: Fixing WordPress
In reply to: Line Not Aligned Properly In Single Product PagesHello again wwwnews!
My hunch tells me that the style that you are using to start with is a part of another plugin, and that it gets loaded after the one that I wrote. The funny thing with styles is that it’s the last one that stands, so it can be tricky to get it right. If you know that a specific plugin is used to create the article-boxes then brows through them in your plugin folder and se if you can find the css-files and the styling of classes cart and quantity. I could try and find an action that is called later in the chain to get my style loaded last, but that is not a good way to go.
If you find the right plugin and the css you want to change, please keep in mind that an update of that plugin will remove any changes you make. You can always clone the plugin, rename it and make your changes to the clone to get around this. Doing that will keep you from getting updates though so take care if it’s a plugin that gets frequent updates.
I want to thank you for the feedback, even though my hope was that your problem was solved. I wanted something “real” to work with and now I got an idea of an admin tool that can be used to search your WordPress files for text to make it easier to find, lets say where a specific class gets its style ?? Let me know how your search goes!
BR,
TjabaloooForum: Fixing WordPress
In reply to: Unable to delete or edit pagesA thought I have is concerning your theme and if you might have a file in your theme with logic in it. There is some kind of redirection going on when I play around with your page.
e.g.
Forum: Fixing WordPress
In reply to: Line Not Aligned Properly In Single Product PagesHello again!
The link below will download a zip containing a plugin for WordPress. Check the content so it doesn’t contain anything malicious (you don’t know me so it’s a good idea to take a look). Place the folder custom-align-quantity-field-plugin in wp-content\plugins and it should pop up among your plugins on your site. Activating it will add a style-script making the changes mentioned above.
I even tried to contain the style by making it effect only elements of the specific type and class contained the way your stuff is contained ??
Custom Align Quantity Field Plugin
Please respond with how it works, and have a great weekend!
Forum: Fixing WordPress
In reply to: Line Not Aligned Properly In Single Product PagesIf you can wait until tomorrow I can write you a simple plugin that does only this. All you have to do then is to put the plugin in your plugin folder, go to your admin page, activate it and Bob is you uncle! Wonderful WP-magic ??
Forum: Fixing WordPress
In reply to: Line Not Aligned Properly In Single Product PagesI did a little cut, paste and play in your css ??
First up you want the div’s container to know its own width. Since it’s not given what I can see I’m assuming it should fill the width of where ever it’s placed, so set it to 100%.
form.cart { margin-bottom: 2em; float: left; margin: 0 4px 0 0; width: 100%; }
With that done you want to edit the div’s css; remove the float-attribute and tell the margins to auto adjust.
div.quantity { margin: auto; }
And with that done it should align properly.
- This reply was modified 6 years, 11 months ago by tjabalooo.