swagzillionaire
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] Both HTTP and HTTPS canonical tags being generated.I encountered the same problem and wrote a workaround using the wpseo_canonical Filter and the $_SERVER supervariable.
Writing this into your functions.php should return a self-referencing canonical with forced http:
function no_https_canonical( $current_url ) { $current_url = 'https://'; $current_url .= $_SERVER['HTTP_HOST']; $path = explode( '?', $_SERVER['REQUEST_URI'] ); $current_url .= $path[0]; return $current_url; } add_filter( 'wpseo_canonical', 'no_https_canonical' );
Forum: Plugins
In reply to: [Favorites] Immediately Changing total favorite count for a userHi, I used the Ajaxize Plugin along with the Favorites plugin to achieve this: https://www.ads-software.com/support/plugin/ajaxize
Install the plugin and generate a div from get_user_favorites_count, use this in your template instead of the function. Then I altered a JS Snippet I found on their FAQ page to refresh the value after you click the “add to favorites” Button.
<script> jQuery(document).ready(function($) { var refreshId = $( ".simplefavorite-button" ).mouseup(function() { var $data = $('div[id*="ajaxize_this:REPLACE_THIS"]'); $data.each( function() { $data.fadeTo(500, 0, function() { var newquery = $.query.set('ajaxize_this', $data.attr('id')).set('_wpnonce', ajaxizeParams._wpnonce); $data.load(location.pathname + newquery, function() { $data.fadeTo(500, 1); }); }); }); return false; }); }); </script>
Hope this helps!
Forum: Fixing WordPress
In reply to: Web-Site no longer displaying in Chrome, Firefox and SafariPretty sure its neither a browser nor a host related problem, the code of your website is just broken all over the place. I would start by fixing the meta tags outside of the header in Line 289 and 294 and then debug the site with a validator like validator.w3.org
Forum: Plugins
In reply to: [WP Super Cache] How to not cache a php code function?Apparently it works like this:
https://z9.io/2013/10/21/shiny-new-dynamic-content-wp-super-cache/I haven’t gotten it to work myself so if you manage to do so it would be great if you could post a small tutorial or something.
Forum: Fixing WordPress
In reply to: meta box position not savingnvm, I’m stupid. The issue was the defaule publish box being overwritten by a plugin.
Forum: Fixing WordPress
In reply to: meta box position not savingDidn’t find the edit button so here we go: What I wrote above only applies to the “publish” box, the other boxes positioning updates as expected
Forum: Plugins
In reply to: [Polylang] MySQL Select<3
Turns out I was being blind. isc_image_source placed the output on top of the post content because it uses echo instead of return. So I copied the function, renamed it and used return in order to wrap it into a variable and output the variable right after $link in the gallery output. Then you can position the gallery-item relative and the output absolute in order to have a nice, clean image overlay. ??
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Facebook Sharing a 404 Pagedid you share the page without the og meta info being present? sounds like facebook cached something incorrectly and you might want to debug the concerning URL https://developers.facebook.com/tools/debug