0.00 (0 votes)
5 stars 0
4 stars 0
3 stars 0
2 stars 0
1 stars 0

Some WordPress themes users experience the following issue: when placing shortcodes in Text widgets, WordPress automatically adds paragraphs for the text, which in some situations may cause the shortcode to display incorrectly. These additional "unnecessary" paragraphs may result in incorrect widget styling.

How to resolve the issue of automatically adding paragraphs in text widgets?

The best way to solve this problem is to use a Custom HTML widget instead of a Text widget. For the Custom HTML widget, paragraphs are not added and the shortcodes will be displayed 100% correctly.  

All you have to do in this case is to copy the shortcode into the Custom HTML widget.

How to manage Custom HTML widgets in WordPress? 

Navigate to WordPress dashboard -> Appearance -> Widgets

Here you’ll find the Custom HTML widget:

How to manage Custom HTML widgets in WordPress?  

This is how the Custom HTML widget looks like in the backend of a WordPress website:

This is how the Custom HTML widget looks like in the backend of a WordPress website:

  1. The widget’s type
  2. The place for the title
  3. A place to enter the content - for example, a shortcode

Opinie użytkowników

Total rating (go to the top to rate): (0 votes) Log-in to add review

INDICO S.C.

ul. Wałowa 10/3, 84-200 Wejherowo, zarejestrowane w Centralna Ewidencja i Informacja o Działalności Gospodarczej
NIP/VATID: PL5882424318

Prawa autorskie © 2015-2019 PixelEmu.com Wszelkie prawa zastrzeżone.