WordPress – fix canonical URL

This goes into functions.php

CHECK YOUR QUOTES WHEN PASTING

function gallery_canonical($url) {
return site_url($_SERVER[‘REQUEST_URI’]);
}

add_filter( ‘wpseo_canonical’, ‘gallery_canonical’ );

add_filter( ‘wpseo_opengraph_url’, ‘gallery_canonical’ );

Alternate version:

function gallery_canonical($url) {
return site_url($_SERVER[‘REQUEST_URI’]);
}

add_action(‘init’, function() {
add_filter(‘wpseo_canonical’ , ‘gallery_canonical’, 10,1);
add_filter( ‘wpseo_opengraph_url’, ‘gallery_canonical’ );

});

Preview Pane Issues – Word could not create the work file

Word Preview : HKCR\CLSID{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}
PowerPoint Preview : HKCR\CLSID{65235197-874B-4A07-BDC5-E65EA825B718}
Excel Preview : HKCR\CLSID{00020827-0000-0000-C000-000000000046}

For Word:

Delete registry key : HKCR\CLSID{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}

Back to Top