ContestHound
Forum Replies Created
-
Hi Ryan! Thanks for your response. I actually sorted out the issue while responding to you. As it turns out, the sharing buttons where sorta there all along. The problem seemed to have been caused by me messing about with some “custom” CSS. I’m assuming I left out a closing bracket or something along those lines since I removed my CSS code and the buttons reappeared.
Probably best if I stick to just making wooden jewelry, but coding is so much fun …
Thanks again for your response!
Forum: Themes and Templates
In reply to: [Storefront] Google Search Console Structured Data errorI had the same problem that my wordpress pages didn’t have the hatom author and updated. I found the following that I put in my custom functions (Plugin) that worked.
//mod content fix Google hAtom Missing author Missing updated //mod content function hatom_mod_post_content ($content) { if ( in_the_loop() && !is_page() ) { $content = '<span class="entry-content">'.$content.'</span>'; } return $content; } add_filter( 'the_content', 'hatom_mod_post_content'); //add hatom data function add_mod_hatom_data($content) { $t = get_the_modified_time('F jS, Y'); $author = get_the_author(); $title = get_the_title(); if ( is_single() || is_page()) { $content .= '<div class="hatom-extra"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>'; } return $content; } add_filter('the_content', 'add_mod_hatom_data');Forum: Plugins
In reply to: [WooCommerce] Woocommerce Duplicate ContentFor anyone following along, a rewrite rule in HTACCESS worked for me. I had to put the new rewrite rule before the wordpress ones.
‘RewriteRule ^(.*)/necklaces/(.*)$ $1/wooden-statement-necklaces/$2 [L,R=301]`
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)/necklaces/(.*)$ $1/wooden-statement-necklaces/$2 [L,R=301] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPressForum: Plugins
In reply to: [WooCommerce] Woocommerce Duplicate ContentAppreciate the help Mike. My above HTACCESS 301 redirect isn’t working so when I do figure it out properly, I’ll add it here for anyone facing the same issue.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Duplicate ContentThanks Mike!
Seems like a easy fix then. What did I do wrong in the first place to cause this duplication?
Am I correct that using HTACCESS rules is preferred over a redirect and a simple re-write is all that is needed? And this needs to go above the WordPress rewrite rules?
RedirectMatch 301 ^/necklaces/(.*)$ http://www.woodyouwear.com/shop/wooden-statement-necklaces/$1So the HTACCESS would look like this:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RedirectMatch 301 ^/necklaces/(.*)$ http://www.woodyouwear.com/shop/wooden-statement-necklaces/$1 RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress