# Wordpress show focus item only in certain pages

**URL:** <https://forum.mautic.org/t/wordpress-show-focus-item-only-in-certain-pages/28737>\
**Category:** Product Support\
**Created:** [July 28, 2023, 7:32am UTC](https://forum.mautic.org/t/wordpress-show-focus-item-only-in-certain-pages/28737 "2023-07-28T07:32:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mchojrin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mchojrin/32/10159_2.png) [@mchojrin](https://forum.mautic.org/u/mchojrin)\
**Post date:** [July 28, 2023, 7:32am UTC](https://forum.mautic.org/t/wordpress-show-focus-item-only-in-certain-pages/28737/1 "2023-07-28T07:32:10Z")

</div>

**Your software**  
My Mautic version is: 4.4.9  
My PHP version is: 7.4.33  
My Database type and version is: 5.7.21

I’m trying to create a popup that should be shown to the visitors only in certain pages of my WordPress site.

Besides this popup I have a _general_ opt-in that I’d like to show everyone else.

So far I have put this in my WP theme configuration:

```auto
[mautic type="focus" id="1"]

```

Since I only have the generic version.

How should I go about this? I looked at Dynamic Content but didn’t really understand whether that’d be my solution.

Thanks!

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [July 28, 2023, 8:13am UTC](https://forum.mautic.org/t/wordpress-show-focus-item-only-in-certain-pages/28737/2 "2023-07-28T08:13:24Z")

</div>

There are plugins, that allow you to use scripts only on certain pages.  
I’m using Woody snipplets to do this (free)

Joey

---

<div class="post-metadata">

**Author:** ![ricfreire](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricfreire/32/14973_2.png) [@ricfreire](https://forum.mautic.org/u/ricfreire)\
**Post date:** [July 28, 2023, 9:23am UTC](https://forum.mautic.org/t/wordpress-show-focus-item-only-in-certain-pages/28737/3 "2023-07-28T09:23:37Z")

</div>

Hello @mchojrin ! If you are using Elementor or Divi on your WordPress, you can create code blocks on those specific pages and insert the popup code in them. However, if you have many pages, this approach may become complicated. An alternative, without using the “Focus Item” feature of Mautic, is to use the [Pop-up maker](https://wordpress.org/plugins/popup-maker/) plugin. With this plugin, you’ll be able to create your popup and precisely set on which pages you want it to appear.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [July 31, 2023, 12:20pm UTC](https://forum.mautic.org/t/wordpress-show-focus-item-only-in-certain-pages/28737/4 "2023-07-31T12:20:32Z")

</div>

You can do this by using campaigns and inside the campaign have a decision of Page Visit and then Action of Focus Item.

---

<div class="post-metadata">

**Author:** ![mchojrin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mchojrin/32/10159_2.png) [@mchojrin](https://forum.mautic.org/u/mchojrin)\
**Post date:** [July 31, 2023, 3:02pm UTC](https://forum.mautic.org/t/wordpress-show-focus-item-only-in-certain-pages/28737/5 "2023-07-31T15:02:58Z")

</div>

That sounds interesting. I’ll look into it.

Thanks!

---

<div class="post-metadata">

**Author:** ![mchojrin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mchojrin/32/10159_2.png) [@mchojrin](https://forum.mautic.org/u/mchojrin)\
**Post date:** [August 2, 2023, 4:55pm UTC](https://forum.mautic.org/t/wordpress-show-focus-item-only-in-certain-pages/28737/6 "2023-08-02T16:55:14Z")

</div>

Hi!

I’m looking at this solution and It seema promising but wouldn’t that require people yo already be contacts in order to work?

What I’m trying to achieve Is to show people a different signup form depending on which page they are reading

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [August 6, 2023, 4:28pm UTC](https://forum.mautic.org/t/wordpress-show-focus-item-only-in-certain-pages/28737/7 "2023-08-06T16:28:48Z")

</div>

You could look at making a segment of anonymous users where filter email is empty
