• Resolved trueblood1994

    (@trueblood1994)


    Hi!
    Does the plugin also work on pages? I’m trying to get the shortcode working with WordPress Blocks Editor now, but unfortunately it doesn’t work.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Yes, it can work on pages! To make the shortcode work, you’ll need to add an id attribute like this. It saves the generated content as meta data and the id is used as the meta key.

    [accessible_reading id="foo"]Lorem ipsum dolor sit amet.[/accessible_reading]

    If you’re using the shortcode in multiple places on one page and want to hide the toggle switch from showing up on the rest, you’ll want to add hide_toggle="1" to the subsequent shortcodes as well, like this:

    [accessible_reading id="bar" hide_toggle="1"]Consectetur adipiscing elit.[/accessible_reading]

    You’ll want to use a unique id for each shortcode otherwise they’ll overwrite each other.

    Thread Starter trueblood1994

    (@trueblood1994)

    Hi, thanks for your reply!

    I’ve put the shortcode above my text but I see toggle and the text doesn’t change. What am I doing wrong?
    https://postimg.cc/68tqBkkq

    Just to check, but do you have an API key from Bionic Reading and is it saved in the settings?

    The settings page can be quickly navigated to at /wp-admin/tools.php?page=accessible-reading following your site’s domain name.

    Once you’ve got a valid API key saved in the settings, the content from the shortcode is sent through the Bionic Reading API when you press the button to save as draft or publish it (it doesn’t generate when drafts auto-save). Try previewing the page after saving it as a draft if the page is not public already.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does it also work on pages?’ is closed to new replies.