gennymac
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Cookie doesn’t set with page cachethe cookie when an user visit a page didn’t set
now i had to remove page cache.
How could i solve this issue? Thanks
Forum: Fixing WordPress
In reply to: Rewrite url path for internal linksthanks for your reply, but it’s so difficult to use regex pattern for my case.
I need to check where inside href there is sitename with www. not www, with https, without https, now i’m trying to remove the sitename from all links, so they will be only relative /pippo/…..
Forum: Fixing WordPress
In reply to: Rewrite url path for internal linkssorry but it’s impossible to use this plugin due to i got a lot of internal links. I need a function so in every case it follow the final slash.
Forum: Fixing WordPress
In reply to: Replacing nofollow rel from cloaked linkHi,
i solved my issue with this code:add_filter( 'the_content', 'ex1_the_content_filter' ); function ex1_the_content_filter($content) { // finds all links in your content with a nofollow preg_match_all('/\<a .*?nofollow.*?a>/',$content,$matches, PREG_SET_ORDER); // loop through all matches foreach($matches as $m){ // potential link to be replaced... $toReplace = $m[0]; // You can add whatever additional "IF" conditions you require to this one if (preg_match('/.*?\/link.*?/',$toReplace)){ // removes rel="nofollow" from the current link $replacement = preg_replace('/(<a.*?)(nofollow )(.*?a\>)/','$1$3',$toReplace); // replaces the current link with the $replacement string $content = str_ireplace($toReplace,$replacement,$content); } } return $content; }
Thanks for you support. You were precious.
- This reply was modified 5 years, 3 months ago by gennymac.
Forum: Fixing WordPress
In reply to: Replacing nofollow rel from cloaked linkHi thanks for your support
tried but it doesn’t work. We can extend it only to all url with /link/ inside. Nofollow isn’t alone. It could be with noopener.
Thanks again.
If you solve my issue, you’ll be my hero.- This reply was modified 5 years, 3 months ago by gennymac.
Forum: Fixing WordPress
In reply to: Replacing nofollow rel from cloaked linkok i see but i don’t know to do it. Thanks.
my url is diaframma11.com
Forum: Plugins
In reply to: [Pixel Caffeine] Error for Add To Cart Eventnow i temporarly solved with add a new event on /cart page visit and so works. But i disabled add to cart inside woocommerce integration. Thanks.
Forum: Plugins
In reply to: [Pixel Caffeine] Error for Add To Cart Eventthanks again for your support.
now i stopped your plugin because doens’t work as specified.
i need add to cart feature.
But could be related to my old woocommerce version? 2.4. Thanks.
Forum: Plugins
In reply to: [Pixel Caffeine] Error for Add To Cart Eventhi thanks for your reply. I’m sorry but doesn’t work. I inserted wp_reset_query() as specified but no changes. Do you have other solutions for me? Thanks.