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

Show Shortcode Notices in Modular Page

Started by Pedro M 5 years ago · 4 replies · 573 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 jean-louis67, 3 weeks ago
2 308 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 310 3 weeks ago
General · by Veehem, 4 weeks ago
0 263 4 weeks ago
General · by milkboy, 4 weeks ago
0 264 4 weeks ago
General · by ian russell, 1 month ago
2 335 1 month ago