Nick C
Forum Replies Created
-
Forum: Plugins
In reply to: [Regenerate Thumbnails] Resized images off by 1pxThat seems odd – I’m not sure why you’d see missing images unless the old ones were removed somehow.
If you were using WP CLI or Force Regenerate Thumbnails (a fork of Regenerate Thumbnails that does delete old thumbnails) that could explain things, but otherwise I’m not sure why your old ones went missing.
Thanks for sharing your workaround, though!
Forum: Plugins
In reply to: [Genesis Responsive Slider] Odd flashing has just appearedYou’re welcome!
I’m not sure why this issue would suddenly appear (unless perhaps the slider transition style was changed recently), but glad it’s now running smoothly again. 🙂
Forum: Plugins
In reply to: [Genesis Responsive Slider] Odd flashing has just appearedHi, dlmweb.
It looks like the inline
margin-right: -100%;style on each.slideelement is being overridden by this code from your theme’s stylesheet atthemes/legacy/style.csson line 978:.flexslider .slides > li { margin: 0 !important; }One way to fix that would be to edit the code to look like this instead:
.flexslider .slides > li { margin: 0 !important; margin-right: -100% !important; }That should make the transition smooth again.
Forum: Plugins
In reply to: [Regenerate Thumbnails] Resized images off by 1pxThis is likely due to a bug in WordPress core that was fixed in version 4.1. WordPress used to round image sizes down instead of up:
https://core.trac.wordpress.org/ticket/18532
If you uploaded an image in WP 4.0, that may have generated thumbnails with a height of 199px high, for example.
If you then update WP to 4.1 or higher and regenerate thumbnails, the same image will then be 200px high. This is not a bug in the plugin but a change in WordPress itself – the same happens when regenerating via WP CLI: http://d.pr/i/1jE2
The Regenerate Thumbnails plugin does not remove old images, though, so your posts should still reference them unless you’re regenerating images from scratch during a migration, or you deleted the old media files manually.
Possible solutions for people encountering this:
- If migrating or importing posts from another site, migrate your thumbnails from your uploads directory manually via FTP as well as the main images. (The existing thumbnails will still be at the old size, rather than the new regenerated size.)
- If you’ve deleted the old (smaller) version of the thumbnails on an existing site, consider restoring them from a backup.
Alternatively, you can also consider:
- Updating image URLs manually to point to the new thumbnail if you don’t have too many of them.
- Temporarily downgrading to WP 4.0, regenerating thumbnails, upgrading to the latest version of WP, then regenerating thumbnails again. (Not tested, but should work in theory to create a batch of thumbnails at the old size and then at the new size. You may wish to do it locally and then upload the regenerated thumbnails though, rather than downgrading a live site.)
Thanks for the update! Glad you figured this out. 🙂
Forum: Plugins
In reply to: [Genesis Simple Share] Genesis Simple Share & AMPYou’re welcome. 🙂
AMP only allows inline styles and a simple stylesheet, so any plugins that use additional external stylesheets may lose styling info once AMP is active. That’s probably why the layout breaks for Social Feather’s icons.
You could look into adding the styles to the AMP stylesheet (e.g. https://github.com/Automattic/amp-wp/blob/master/readme.md#custom-css ), or roll your own JavaScript-free share buttons (but with inline styles): http://www.noupe.com/wordpress/wordpress-and-social-media-static-share-buttons-for-a-faster-website-88572.html
If AMP becomes more widely adopted, you may see share plugins that offer AMP support out of the box.
Forum: Plugins
In reply to: [Genesis Simple Share] Genesis Simple Share & AMPHi, ccurtin.
The AMP plugin strips JavaScript, which Genesis Simple Share requires to display icon counts at the moment.
I’ll pass on your request to see if a future version of the plugin could include a no-JavaScript mode that would work with AMP.
If you need to use AMP with share buttons in the meantime, Social Feather (which doesn’t use JavaScript) is likely a better choice for now.
Forum: Plugins
In reply to: [Genesis Simple Hooks] Exclude Hooks from Landing Page TemplateHi, Ashley.
You’re on the right track! You can use conditional tags for this, just as you say:
https://codex.wordpress.org/Conditional_Tags
https://developer.wordpress.org/themes/basics/conditional-tags/To display content on all pages except for the landing page template, the PHP you’d use in the hook fields looks like this:
<?php if ( ! is_page_template( 'page_landing.php' ) ) { echo "<p>This text appears on pages that don't use the landing page template.</p>"; } ?>Or if you’re using blocks of HTML in your hook field, it would instead look like something like this:
<?php if ( ! is_page_template( 'page_landing.php' ) ): ?> <div class="my-fancy-content"> <p>This text appears on pages that don't use the landing page template.</p> <p>Another paragraph with particularly imaginative placeholder text.</p> </div> <?php endif; ?>The
!at the beginning of the if statement makes it negative, causing it to read “if the page template is NOT page_landing.php”, or “if it’s not a landing page” in more simple terms.With Genesis Simple Hooks, you’ll need to check the “Execute PHP on this hook” box for each field if you haven’t done so already:
PHP: http://d.pr/i/1hwcM
PHP and HTML mixed: http://d.pr/i/13Ab6You can use all of the other conditionals from https://codex.wordpress.org/Conditional_Tags to include or exclude other page types should you need to. The docs there show how to chain conditionals together to do things like “if it’s page A OR page B, show my content.”: https://codex.wordpress.org/Conditional_Tags#Check_for_Multiple_Conditionals
Hopefully that helps as a starting point, but please feel free to ask if you get stuck with this.
Thanks for the update, casinorecom.
If the same
/go/address works with Pretty Links but not Simple URLs, there’s no need to rewrite the Pretty Link URL to test this as I described before.It sounds as though Simple URLs may be failing to retrieve your link URL correctly, but I don’t yet have an explanation for this; it may be specific to your hosting environment, as I can’t reproduce this locally at the moment.
For now, it may be easier to stick with Pretty Link if that’s working for you. Sorry for the inconvenience there.
Forum: Plugins
In reply to: [Genesis Simple Share] facebook like buttonHi, belliniphotoart.
There’s no option to add a Facebook Like button just yet – the plugin uses the share feature only at the moment. Thanks for your feedback, though!
Hi, casinorecom.
Do you have any redirects or rewrite rules at the server level?
Note that redirects in parent folders can sometimes apply to sites hosted in subfolders, so it can be worth checking other sites on your server too.
To test there are no rewrite rules acting on
/go/URLs, you could try changing the Simple URLs base slug from ‘go’ to ‘x’ by adding this code to your active theme’s functions.php file:add_filter( 'simple_urls_slug', function(){ return 'x'; });You’ll need to save permalinks after making this change. Your links will then look like this: http://casinorecommender.com/x/go-poshbingo/
It would also be worth clearing and/or temporarily disabling any server-side caches that you or your host uses.
If this doesn’t solve things for you, could you share the URL you are redirecting
go-poshbingoto, please?Forum: Plugins
In reply to: [Genesis Simple Share] jQuery Reference ErrorHi, Macrunner.
Genesis Simple Share currently uses a Google Analytics tracking feature provided by the Sharrre library so that you can record which share button someone pressed in Analytics. This is helpful to learn what button is the most popular for your site, for example: http://sharrre.com/track-social.html
If Analytics is not set up for your site, you’ll see the “Can’t find variable: _gaq” message in your console if you press one of the share buttons, but this should otherwise not affect the sharing functionality.
Currently, it’s not possible to disable the Google Analytics integration entirely without editing the plugin. (You would need to set enableTracking to false on this line in
front-end.php.) Note that plugin updates will overwrite this change, though.)I hope that helps to explain things, but feel free to ask if you need further help with this.
Forum: Plugins
In reply to: [Genesis Responsive Slider] Genesis Slider Stopped WorkingHi Liz.
Did you switch to a static homepage recently in Settings → Reading? The slider in Education will only show if your front page is set to display “Your latest posts”. If you switch back to that, you should find that the slider returns.
Forum: Plugins
In reply to: [Genesis Simple Share] How to add the total share like CopybloggerHi, zaifhul.
The total share count you see on http://www.copyblogger.com/blog was added separately from the plugin using custom JavaScript code in the Copyblogger theme.
I don’t currently have step-by-step instructions to add this to your own site, but if you have development skills or are willing to hire help, you can find the share count code in the Copyblogger source to use as a starting point: http://d.pr/i/15p6M
Forum: Plugins
In reply to: [Genesis Simple Share] Facebook, Linkedin buttons do not appear in FirefoxYou’re welcome, and thanks for the review!