Create custom Shortcodes, accessible from the top toolbar of the Gutenberg edito

Posted in: Newspaper
Post count: 1

I use the Newspaper template (I’m a new customer).

In the Gutemberg editor I get a dropdown list called “Shortcodes”, with access to 3 items(“Youtube playlist”, “Vimeo playlist”, “Smart list end”).

I want to add some of my custom shortcodes to this list or a similar one. Basically I want that when clicking on a custom element, it inserts in the text editor “a specific text”, for example 3 elements:

  1. [gallery ids="id" size="medium" columns="1" link="file"]
  2. [gallery ids="id" size="medium" columns="2" link="file"]
  3. [gallery ids="id" size="medium" columns="3" link="file"]
  4. …or “bla bla bla” (the plain text that I want)

Thus, later I only have to change the “ids”.

The name that should appear on the list could be:

  1. Gallery Column 1
  2. Gallery Column 2
  3. Gallery Column 3

And the title of the group in the list: “My Shortcodes”

How can I do all this? I don’t want to use the native Gutenberg editor block options.

Actually, what I want is to insert various custom plain texts that I want directly from the Shortcodes list menu (or create a similar list menu).

Is it possible to insert all the necessary code in the theme options, in “Newspaper / Themes Panel / Custom Code”? How can I create it?

Post count: 21065

Hello!

You can not customize that editor from our theme and add the code in the theme panel.
Gutenberg editor belongs to WordPress.
To achieve what you need, it will require custom work which is not covered by the support team.
For customization and other services you can contact our custom work team here: https://tagdiv.com/premium-customization-services/

Thank you for understanding!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.