Error single click opens all pop ups

https://pastebin.com/nL9p0ZRR

The code adds “Flag button” inside single post or page and works fine there.

But when i add it to front page by replacing a small part of code to:

if ( is_home( ‘post’ ) && ( $this->settings[‘content’] == ‘post’ || $this->settings[‘content’] == ‘post_and_page’ ) ) {
$this->post_type = ‘post’;
}

Then it opens all pop up windows instead of just one. https://imgur.com/a/dqWWuhD

So there is a misstake somewhere. What can it be?

Read more here:: Error single click opens all pop ups

Leave a Reply

Your email address will not be published. Required fields are marked *