Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Show Shortcode Notices in Modular Page

Started by Pedro M 5 years ago · 4 replies · 482 views
5 years ago

Hi.

I'm testing the shortcode-core notices in a modular page and it doesn't work. It shows only the plain text, without notice styles.

I attach some screenshots:
Screenshot from 2021-11-30 11-19-15|690x138
Screenshot from 2021-11-30 11-19-42|690x79
Screenshot from 2021-11-30 11-20-10|415x86
Screenshot from 2021-11-30 11-20-39|388x157

What's happening?

Thanks a lot.

5 years ago

What theme are you using? I just tested this with Quark and Bootstrap and it works fine for me. All I can see is that you are getting two sets of quotes generated in your html.

last edited 11/30/21 by Alan Coggins
5 years ago

Hi.

when you say there are two set of quotes, are you referring to two 'div' tags?. In the plugin twig template, you can see this:

HTML
<div class="sc-notice {{ type }}">
  <div>{{ content|raw }}</div>
</div>

I'm using a modified future imperfect theme (you can see here.

5 years ago

No, I mean in the latin filler text your image has ""Neque porro..... velit...""

When I try it I only get one set of double quotes. Try with quark and see if it works there.

5 years ago

Hello,

I've had to downgrade the FontAwesome Icons to version 4.7 for it to work. For some reason that I do not know with the icons of version 5, some plugins such as shortcode-core do not work correctly.

On the other hand, shortcode-core notices still don't work on modular pages. I will continue testing.

Thanks

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 85 13 hours ago
General · by pamtbaau, 18 hours ago
1 60 18 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 350 5 days ago
General · by Duc , 6 days ago
3 44 5 days ago