tddnames
Forum Replies Created
-
Awesome, works now! Thank you very much!
FYI if anyone else is doing this, here’s the correct syntax (above had an extra ” in the code.
$html .= ' <a href="' . $link['href'] . '" target="_blank"' . 'rel="sponsored">' . $link['label'] . '</a>';
Here’s a CSS hack to change the CTA text
selector .wp-block-themeisle-blocks-review__footer_label { text-indent: -9999px; line-height: 0; /* Collapse the original line */ } selector .wp-block-themeisle-blocks-review__footer_label::after { content: "New text"; text-indent: 0; display: block; line-height: initial; /* New content takes up original line height */ }
Thanks lots! I changed row 231 to
$html .= ' <a href="' . $link['href'] . '" target="_blank"' . '" rel="sponsored">' . $link['label'] . '</a>';
however, bit of a problem. In the plugin editor the /inc/ folder isn’t showing, only the below can be edited.
otter-blocks.php
CHANGELOG.md
assetsfolder
buildfolder
class-otter-blocks.php
readme.txt
readme.mdI tried to copy the entire /inc/ folder (and everything in it) from https://github.com/Codeinwp/gutenberg-blocks to /wp-content/plugins/otter-blocks/inc/
and I made the above change to row 231 in /inc/render/class-review-block.php BUT this change doesn’t override plugin file, and the rel=”sponsored” attribute isn’t there in the HTML sourcecode
Any further help would be very much appreciated!
Hey Hardeep, fantastic! That would be a really great option (nofollow as default, sponsored as a checkbox option). Yeah I’m comfortable with editing the code. Thanks Matt
Forum: Plugins
In reply to: [Easy Table of Contents] Plugin is now pulling in external links in headingsUpdating to 1.6.1 fixed it! Awesome and thanks for the quick reply / fix