Title: Benji Mauer's Replies | WordPress.org

---

# Benji Mauer

  [  ](https://wordpress.org/support/users/telephag/)

 *   [Profile](https://wordpress.org/support/users/telephag/)
 *   [Topics Started](https://wordpress.org/support/users/telephag/topics/)
 *   [Replies Created](https://wordpress.org/support/users/telephag/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/telephag/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/telephag/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/telephag/engagements/)
 *   [Favorites](https://wordpress.org/support/users/telephag/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Add 'Image CSS Class" to containing figure tag](https://wordpress.org/support/topic/add-image-css-class-to-containing-figure-tag/)
 *  [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/add-image-css-class-to-containing-figure-tag/#post-8716857)
 * Ah, I see. In that case, check out this StackOverflow answer: [http://wordpress.stackexchange.com/a/231697](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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Add 'Image CSS Class" to containing figure tag](https://wordpress.org/support/topic/add-image-css-class-to-containing-figure-tag/)
 *  [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/add-image-css-class-to-containing-figure-tag/#post-8716696)
 * So, 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](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-big` and 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, 6 months ago by [Benji Mauer](https://wordpress.org/support/users/telephag/).
    -  This reply was modified 9 years, 6 months ago by [Benji Mauer](https://wordpress.org/support/users/telephag/).
    -  This reply was modified 9 years, 6 months ago by [Benji Mauer](https://wordpress.org/support/users/telephag/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TheCartPress eCommerce Shopping Cart] Redirect Problem](https://wordpress.org/support/topic/redirect-problem-29/)
 *  [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/redirect-problem-29/#post-8348424)
 * Hi [@ipbroad](https://wordpress.org/support/users/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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TheCartPress eCommerce Shopping Cart] Redirect Problem](https://wordpress.org/support/topic/redirect-problem-29/)
 *  [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/redirect-problem-29/#post-8339310)
 * For others, got this fix from the plugin author:
 * you have to edit wordpress `root/wp-content/plugins/thecartpress/modules/manage_modules.
   php`
 * Comment those lines:
 * `//require_once( 'CustomLogin.class.php' );`
 * and
 * `//require_once( 'LoginRegister.class.php' );`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TheCartPress eCommerce Shopping Cart] Custom login redirect is causing nothing but problems](https://wordpress.org/support/topic/custom-login-redirect-is-causing-nothing-but-problems/)
 *  Thread Starter [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/custom-login-redirect-is-causing-nothing-but-problems/#post-8339302)
 * For others, got this fix from the plugin author:
 * you have to edit wordpress `root/wp-content/plugins/thecartpress/modules/manage_modules.
   php`
 * Comment those lines:
 * `//require_once( 'CustomLogin.class.php' );`
 * and
 * `//require_once( 'LoginRegister.class.php' );`
    -  This reply was modified 9 years, 9 months ago by [Benji Mauer](https://wordpress.org/support/users/telephag/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TheCartPress eCommerce Shopping Cart] updating 1.4.9 to 1.5.3 admin login redirect issue](https://wordpress.org/support/topic/updating-149-to-153-admin-login-redirect-issue/)
 *  [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/updating-149-to-153-admin-login-redirect-issue/#post-8336363)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TheCartPress eCommerce Shopping Cart] Plugin breaks "Lost Your Password" link](https://wordpress.org/support/topic/plugin-breaks-lost-your-password-link/)
 *  [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/plugin-breaks-lost-your-password-link/#post-8336358)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TheCartPress eCommerce Shopping Cart] wp-admin redirects to my-account](https://wordpress.org/support/topic/wp-admin-redirects-to-my-account/)
 *  [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/wp-admin-redirects-to-my-account/#post-8336350)
 * This 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TheCartPress eCommerce Shopping Cart] Redirect Problem](https://wordpress.org/support/topic/redirect-problem-29/)
 *  [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/redirect-problem-29/#post-8336344)
 * This is a major issue for me as well.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TheCartPress eCommerce Shopping Cart] Custom login redirect is causing nothing but problems](https://wordpress.org/support/topic/custom-login-redirect-is-causing-nothing-but-problems/)
 *  Thread Starter [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/custom-login-redirect-is-causing-nothing-but-problems/#post-8336337)
 * This is a huge issue for my site. I don’t want to choose between broken logins
   and broken widgets.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type Archives] [Plugin: Custom Post Type Archives] Fatal error on line 385](https://wordpress.org/support/topic/plugin-custom-post-type-archives-fatal-error-on-line-385/)
 *  Thread Starter [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-archives-fatal-error-on-line-385/#post-1933278)
 * 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
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type Archives] [Plugin: Custom Post Type Archives] Fatal error: Cannot redeclare is_post_type_archive()](https://wordpress.org/support/topic/plugin-custom-post-type-archives-fatal-error-cannot-redeclare-is_post_type_archive/)
 *  [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-custom-post-type-archives-fatal-error-cannot-redeclare-is_post_type_archive/#post-1932029)
 * Getting the same issue. NO idea how to fix it. Guess we should have looked at
   compatability before upgrading!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress 3.1 stable – can't view post excerpts or custom fields](https://wordpress.org/support/topic/wordpress-31-stable-cant-view-post-excerpts-or-custom-fields/)
 *  [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/wordpress-31-stable-cant-view-post-excerpts-or-custom-fields/#post-1931871)
 * I am having the exact same issue. 3.1 stable, downloaded today, running the Prototype
   theme.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Incompatibility between EventCalendar and Podcasting plugin](https://wordpress.org/support/topic/incompatibility-between-eventcalendar-and-podcasting-plugin/)
 *  Thread Starter [Benji Mauer](https://wordpress.org/support/users/telephag/)
 * (@telephag)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/incompatibility-between-eventcalendar-and-podcasting-plugin/#post-1057949)
 * Alrighty, 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

Viewing 14 replies - 1 through 14 (of 14 total)