Jacob Dunn
Forum Replies Created
-
Forum: Plugins
In reply to: [PB Responsive Images] Removes CSS classes from images, including spacingMarking as resolved.
Forum: Plugins
In reply to: [PB Responsive Images] Removes CSS classes from images, including spacingGlad you were able to fix it, hope it wasn’t anything too extreme ??
Forum: Plugins
In reply to: [PB Responsive Images] Removes CSS classes from images, including spacingWould modifying the css selector from
img.alignright
to.alignright img
be an option? There are other ways to get around this, but that might be the most straight-forward.Forum: Plugins
In reply to: [PB Responsive Images] White Space Above ImagesWow, that’s odd. There’s extra
tags being added into the reponsive image code, I’m assuming from another plugin. You could work around it by adding:.aligncenter br, .alignright br, .alignleft br{ display:none; }
But I’m curious as to where they’re coming from.
Forum: Plugins
In reply to: [PB Responsive Images] White Space Above ImagesHeh – you’ll need to have the plugin active, as well. At a guess, the styling you’ll need to modify is around line 725 in your stylesheet.
Forum: Plugins
In reply to: [PB Responsive Images] White Space Above ImagesI’d guess the wrapping span and the image are both being styled as “inline”. You’ll need to change your css to have the span and image both as “inline-block”, which is very specific to your template. If you share a link to the page in question, I could probably point you towards the specific styling needed.
Forum: Plugins
In reply to: [PB Responsive Images] Suggestion for image cache locationThanks for the recommendation! The plan is to move away from SLIR entirely, actually. I’ve been working on an update that strips it out in exchange for the native WordPress image editor introduced in 3.5, possibly with a wrapper such as WPThumb. Either way, the more native WordPress code we can use, the better – issues such as yours need to be avoided entirely, if possible.
Thanks!
Forum: Plugins
In reply to: [PB Responsive Images] Various BUGS/PROBLEMSAh, that’s set in the admin under Settings->Responsive Images->SLIR Base URL. You can use the help tab on the top right on that screen for additional info on that field, as well.
Forum: Plugins
In reply to: [PB Responsive Images] Various BUGS/PROBLEMSI believe nginx doens’t allow rewrites, so you’ll want to change the slir rewrite to {plugin-url}/slir/index.php?r= to avoid that. One of the major motivations behind the upcoming plugin rework is to remove the reliance on mod_rewrite entirely, as that seems to be the most major issue most users are experiencing.
Forum: Plugins
In reply to: [PB Responsive Images] Various BUGS/PROBLEMSThanks for the information/recommendations. I’m actually doing a rewrite of the core for this plugin, I’ll be sure to keep the page speed recommendations in particular in mind as I finish it up.
Thanks!
Forum: Plugins
In reply to: [PB Responsive Images] Settings are blankThat’s odd – what version of WordPress are you using? Any other plugins active?
Forum: Plugins
In reply to: [PB Responsive Images] Resize featured image in Twenty Fourteen theme?Cool – marking this as resolved, for now.
Forum: Plugins
In reply to: [PB Responsive Images] Resize featured image in Twenty Fourteen theme?Hey there,
If you look at the help tab on the options page, it has a section titled “additional functions” that has the following example code:
$image = array( 'src' => get_header_image(), 'alt' => '' ); $formats = array( array("media"=>"" ,"query"=>"w368","fallback"=>true), array("media"=>"(min-device-pixel-ratio:2)" ,"query"=>"w736",), array("media"=>"(min-width:420px)" ,"query"=>"w833",), array("media"=>"(min-width:420px) and (min-device-pixel-ratio:2)" ,"query"=>"w1000",), array("media"=>"(min-width:885px)","query"=>"w1000"), ); echo RIP::get_picture($image,$formats);
What you’ll need to change to make this work with your template is the
src
and of course, the proper media query and resize query. Thesrc
will bewp_get_attachment_url( get_post_thumbnail_id($post->ID) )
, and the query set depends on how your theme responds to screen resizing.Let me know if you need additional clarification – it’s a bit more programming than the average plugin, unfortunately, I know.
Thanks!
Forum: Plugins
In reply to: [PB Responsive Images] Any permanent changes?Hey Andi,
Nothing this plugin does is permanent, so this should work out nicely for you with the proper configuration. All source images are left untouched, what is served to the browser is resized images stored in a cache in the plugin’s directory. If you uninstall and delete the plugin, all will revert to as it was originally.
Thanks!
JakeForum: Plugins
In reply to: [PB Responsive Images] Getting the resized picture urlHi scatmandon,
Unfortunately, you’re discarding the majority of what this plugin was built for by just pulling the image URL – if that’s all you need, all you really want is the SLIR image resize library’s functionality.
I’ve done that myself by just manually putting the base query and the image URL I was planning on using at the end of it. So, just copy the “SLIR Base URL” out of the admin, and then append your sizing query and url onto the end of it. e.g.:
/slir/w80/wp-content/themes/your-theme/images/an-image.png
This is something worth putting into a global function though, I’ll see if I can get something out for the next update.
Thanks!