Benji Mauer
Forum Replies Created
-
Forum: Plugins
In reply to: Add 'Image CSS Class" to containing figure tagAh, I see. In that case, check out this StackOverflow answer: http://wordpress.stackexchange.com/a/231697. Seems like basically what you’re looking for. For my purposes, I mainly needed to style the caption based on a combination of image size and alignment. Where I got hung up was programmatically getting the image size of the image and applying it to the containing figure… The adjacent sibling selector was enough of a solution for me. But, if you can find out how to pull out the Advanced CSS information, you should be able to put that into the function in the StackOverflow answer. Another option would be to use jQuery to pull the class of the image and apply it to its parent
figure. Unfortunately there aren’t parent selectors in CSS. Good luck!Forum: Plugins
In reply to: Add 'Image CSS Class" to containing figure tagSo, after wracking my brain on this one for a bit, I figured out a way of applying a different style to the caption based on a given image style. You have to use an adjacent sibling selector in CSS: https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_selectors
So let’s say you have a custom image size called
size-mega-bigand you want the caption to look a specific way. This is the markup that WordPress spits out for an image with a caption:<figure id="attachment_49" style="width: 1300px" class="wp-caption alignnone"> <img class="wp-image-49 size-mega-big" src="http://website.org/wp-content/uploads/giraffe-image-1300x720.jpg" alt="Image caption that is great." width="1300" height="720"> <figcaption class="wp-caption-text">Image caption that is great.</figcaption> </figure>You could write CSS that looks like this, which targets the caption after the image with the class
.size-mega-big:.wp-caption img.size-mega-big + figcaption.wp-caption-text color: red; font-size: large; }Hope this helps!
- This reply was modified 9 years, 3 months ago by Benji Mauer.
- This reply was modified 9 years, 3 months ago by Benji Mauer.
- This reply was modified 9 years, 3 months ago by Benji Mauer.
Forum: Plugins
In reply to: [TheCartPress eCommerce Shopping Cart] Redirect ProblemHi @ipbroad reading your original post your issue might be different. However, the fix I posted pertains to disabling the custom login, registration, and lost password pages that TheCartPress creates by default.
Also, the fix is applicable for the current version of TheCartPress. If you’re using an older version, it may not be applicable.
Sorry I can’t be of more help. I encourage you to go to the plugin author’s website and send a contact form message. 8i got a relatively timely response.
Forum: Plugins
In reply to: [TheCartPress eCommerce Shopping Cart] Redirect ProblemFor others, got this fix from the plugin author:
you have to edit wordpress
root/wp-content/plugins/thecartpress/modules/manage_modules.phpComment those lines:
//require_once( 'CustomLogin.class.php' );and
//require_once( 'LoginRegister.class.php' );For others, got this fix from the plugin author:
you have to edit wordpress
root/wp-content/plugins/thecartpress/modules/manage_modules.phpComment those lines:
//require_once( 'CustomLogin.class.php' );and
//require_once( 'LoginRegister.class.php' );- This reply was modified 9 years, 7 months ago by Benji Mauer.
This change has caused big issues for me as well. We have some custom workflows that use WordPress’s stock login workflow. This custom login page stuff is really messing up our site. Either make it optional, or remove the custom login stuff entirely.
The custom login stuff that the latest TheCartPress has rolled out also takes over the “Lost your password” flow. As far as I can tell this adds no benefit for users. Please make the custom login optional or remove it entirely.
Forum: Plugins
In reply to: [TheCartPress eCommerce Shopping Cart] wp-admin redirects to my-accountThis custom login redirect is also causing admin access issues, as well as screwing up other registration and login workflows we have set up. Please remove the custom login or make it optional.
Forum: Plugins
In reply to: [TheCartPress eCommerce Shopping Cart] Redirect ProblemThis is a major issue for me as well.
This is a huge issue for my site. I don’t want to choose between broken logins and broken widgets.
Hi rATRIJS — I just want to say thank you so so much for fixing that issue! Myself and my client are much relieved. Do you have a donate button where I could chip in a few for your efforts?
Thanks!
Ben
Getting the same issue. NO idea how to fix it. Guess we should have looked at compatability before upgrading!
Forum: Fixing WordPress
In reply to: WordPress 3.1 stable – can't view post excerpts or custom fieldsI am having the exact same issue. 3.1 stable, downloaded today, running the Prototype theme.
Forum: Plugins
In reply to: Incompatibility between EventCalendar and Podcasting pluginAlrighty, I figured this one out, sort of. I’m still not sure what’s up with the enclosures stuff, but all I needed to do was change the EventCalendar setting “Show events as blog entries:” to “Events are Normal Posts”.
Thanks,
Ben