10635 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
2nd December 2010 (1 year ago)
#
Hiya Nick,
Your request has not fallen on def ears. I know some CSS classes have already been added for the next version of MarketPress and I'll let the devs know about this idea as well.
A specific class would be needed as 'button' is really just a type and not a great class.
That's a bit too vague of a css class to add. All the links already have classes, just add them to your theme's css, very simple. Adding it to the plugin could cause conflicts with many themes.
mp_cart_direct_checkout_link
mp_link_addcart
mp_link_buynow
etc.
Hi I have a similar problem and would like to inherit them already made buttons in my website to
Marketpress also.
I solved it this way:
In marketpress/marketpress-includes/template-functions.php
Change <input class="mp_button_addcart" to <input class="mp_button_addcart exp-button"
the class "exp-button" that of course you change to your themes css class button.
But my problem is to change the style on table buttons like this:
<td class="mp_cart_col_updatecart exp-button"> this code dosent work has anyone any suggestions how to solve this problem?
Here you can see the inherit style in action http://expediten.se/webbshop/
thumbs up for this kind of function in Marketpress
7257 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Support Chimp
—
5th February 2012 (3 months ago)
#
Hey Malinka.
Sorry I saw you stated that you solved it and didn't realise you had further questions.
But my problem is to change the style on table buttons like this:
<td class="mp_cart_col_updatecart exp-button"> this code dosent work has anyone any suggestions how to solve this problem?
Could you please elaborate a little more?
Are you having issues with the CSS or implementing some code.
I'm trying to implement a css class in template-functions.php
I have managed to add exp-button class to mp_button_addcart class but when I try add exp-button to mp_cart_col_updatecart class it will not inherit from my default theme css.
Do you have any tip how to implement css class to mp_cart_col_updatecart without making a custom theme for marketpress.
7257 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Support Chimp
—
6th February 2012 (3 months ago)
#
Ah so you did. :-)
As you notice on the buttons the class is applied to the input. Have you done that for the others as well? Looking at your source it seems to be on the table?
Responses (15)
Sales & Support Lead — 2nd December 2010 (1 year ago) #
Hiya Nick,
Your request has not fallen on def ears. I know some CSS classes have already been added for the next version of MarketPress and I'll let the devs know about this idea as well.
A specific class would be needed as 'button' is really just a type and not a great class.
Thanks for posting! :D
Lead Developer — 2nd December 2010 (1 year ago) #
That's a bit too vague of a css class to add. All the links already have classes, just add them to your theme's css, very simple. Adding it to the plugin could cause conflicts with many themes.
mp_cart_direct_checkout_link
mp_link_addcart
mp_link_buynow
etc.
Member — 4th February 2012 (3 months ago) #
Hi I have a similar problem and would like to inherit them already made buttons in my website to
Marketpress also.
I solved it this way:
In marketpress/marketpress-includes/template-functions.php
Change <input class="mp_button_addcart" to <input class="mp_button_addcart exp-button"
the class "exp-button" that of course you change to your themes css class button.
But my problem is to change the style on table buttons like this:
<td class="mp_cart_col_updatecart exp-button"> this code dosent work has anyone any suggestions how to solve this problem?
Here you can see the inherit style in action http://expediten.se/webbshop/
thumbs up for this kind of function in Marketpress
With best regards
Malin
Support Chimp — 4th February 2012 (3 months ago) #
Thanks for your feedback on this one. :-)
Take care.
Member — 5th February 2012 (3 months ago) #
Hi
Is it better if I start a new thread for this question because this thread is pretty old ?
Support Chimp — 5th February 2012 (3 months ago) #
Hey Malinka.
Sorry I saw you stated that you solved it and didn't realise you had further questions.
Could you please elaborate a little more?
Are you having issues with the CSS or implementing some code.
Thanks.
Member — 5th February 2012 (3 months ago) #
Hi
I'm trying to implement a css class in template-functions.php
I have managed to add exp-button class to mp_button_addcart class but when I try add exp-button to mp_cart_col_updatecart class it will not inherit from my default theme css.
Do you have any tip how to implement css class to mp_cart_col_updatecart without making a custom theme for marketpress.
Support Chimp — 5th February 2012 (3 months ago) #
So when targeting "mp_cart_col_updatecar" nothing happens? Perhaps some other CSS is over ruling it on that page.
Would it be possible for me to see a link, so I can have a look myself?
Take care.
Member — 6th February 2012 (3 months ago) #
Hi
I did provided it in the top thread but here we go again
http://expediten.se/webbshop/ :=)
Support Chimp — 6th February 2012 (3 months ago) #
Ah so you did. :-)
As you notice on the buttons the class is applied to the input. Have you done that for the others as well? Looking at your source it seems to be on the table?
/marketpress/marketpress-includes/template-functions.php
Line 283:
`$content .= ' <td class="mp_cart_col_updatecart"><input type="submit" name="update_cart_submit" value="' . __('Update Cart »', 'mp') . '" /></td>';
`
Take care.
Member — 6th February 2012 (3 months ago) #
You mean I should put my css class after input like this <input type="submit exp-button" ?
Regards
Malin
Member — 6th February 2012 (3 months ago) #
Thank you very much
$content .= ' <td class="mp_cart_col_updatecart"><input type="submit" class="exp-button" name="update_cart_submit" value="' . __('Update Cart »', 'mp') . '" /></td>';
That did the trick.
Regards
Malin
Support Chimp — 6th February 2012 (3 months ago) #
You are most welcome. :-)
Take care.
Member — 28th April 2012 (3 weeks ago) #
Hey guys, I'm curious... Is the tweak that Malinka suggest permanent or does it get overwritten by updates?
Member — 28th April 2012 (3 weeks ago) #
Hi
it will get overwritten by updates :(
Regards
Malin
Become a member