• Resolved Gruskel

    (@elevas33)


    Hello good afternoon my problem is that I made the mistake of putting all my manual shortcodes glued to the first paragraph as I put below:

    <!-ads1->First paragraph.

    And of course the problem is that now I have changed the theme and it turns out that all my first paragraphs are smaller than the others because it is affected by the <!-ads1->. How can I correct it?, attached photos:

    <!-ads1-> pasted to the first paragraph
    https://ibb.co/TkfnG8x

    <!-ads1-> separated from the first paragraph

    https://ibb.co/c1YRw3g

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I am sorry but there is no automatic way to correct this.
    Cheers
    René

    Thread Starter Gruskel

    (@elevas33)

    Actually it can… I fixed it by putting this code in the funtions.php of my theme and it has been perfect.

    add_filter(‘the_content’, ‘the_content_ads’, 9999);
    function the_content_ads($content){

    $content = preg_replace(‘/<p>(.*?)<div class=\”quads-location quads-ad1\” id=\”quads-ad1\”(.*?)>(.*?)<\/div>/is’, “<div class=\”quads-location quads-ad1\” id=\”quads-ad1\”$2>$3</div><p>”, $content);

    return $content;

    }

    @elevas33 thank you very much for the feedback. This might be valuable for other users.

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘The shotcodes change my text size’ is closed to new replies.