• Resolved bulls_shark

    (@bulls_shark)


    Hello, could you perhaps include an option that prevents the date of the pages from being displayed in the google search engine?

    Thanks for the support

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @bulls_shark can you show us an example so everyone reading this could check it out? Perhaps you’re referring to a specific HTML tag. Some print screen would be good. If you’re not comfortable sharing your website’s URL here, you can reach out via https://www.gabelivan.com/contact/

    Thread Starter bulls_shark

    (@bulls_shark)

    Hello, thank you. I’ve just sent you everything!

    Really top support! I can only recommend

    Plugin Author Gabe Livan

    (@gabelivan)

    @bulls_shark as this was solved privately (at least I guided you and provided a method to strip that date, even though it’s not possible stripping that HTML code with Asset CleanUp), I’ll mark this topic as “resolved”.

    In case anyone would want to strip any HTML from their WordPress website and just can’t do it in the most effective way (which is editing it from the original location where it was created in the first place), then a code like the following one could be used:

    add_action('wp_loaded', function() {
        if (is_admin()) {
            return;
        }
    
        ob_start(function($htmlSource) {
            // you might need to use \n for new lines, it depends on the HTML source code
            return str_replace('[place the actual HTML code here]', '', $htmlSource);
        });
    });
    Thread Starter bulls_shark

    (@bulls_shark)

    Hello, thanks again for the support

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Remove Date from Post’ is closed to new replies.