Shortcode Parameters
You can output QuotesDLX in a shortcode. This makes QuotesDLX compatible with the Classic Editor and also with most page builders.
Last updated
You can output QuotesDLX in a shortcode. This makes QuotesDLX compatible with the Classic Editor and also with most page builders.
Last updated
QuotesDLX has a shortcode you can use if you don't want to use the block output.
Here's a sample shortcode.
The shortcode will get your defaults from the admin options, but you can easily override the defaults.
Here are the available shortcode parameters.
Can be:
midnight-blue
bubble-gum
cotton-candy
dark-x
dark-matter
light-branded
purple-bliss
Example usage:
If your quote is too long, you can enable a shorter version. You'll use this in conjunction with share_text_override
.
Can be:
true
false (default)
Enter the text you'd like to use for Twitter sharing to avoid exceeding the character count.
Example usage:
These are comma-separated and will be displayed when sharing on Twitter/X.
Example usage:
This is for the text shown on the Twitter (now X) button if a label is shown.
Example usage:
This is for the text shown on the Facebook button if a label is shown.
For a Facebook button to show, you need to set facebook_button_enabled
to true
.
What Twitter/X username you'd like to use when someone shares out the quote.
Example usage:
This argument controls the overall alignment of the share buttons.
Can be:
left
center
right (default)
Example usage:
This argument controls the location of the icon on the share buttons.
Can be:
left
center
right (default)
Example usage:
Hide the Twitter button by setting this to false.
Can be:
true (default)
false
Example usage (only show Facebook):
Enable the Facebook button in the quote.
Can be:
true
false (default)
Example usage:
Determine how the sharing buttons look.
Can be:
full (default)
icon (icons only)
text (text only)
Example usage:
This determines if the buttons should be shown as-is, or are transparent.
Can be:
button (default)
transparent
The argument tweet_button_display
must be set to icon for a button to be transparent.
Example usage:
The maximum width of the container (numbers only). Use this in conjunction with maximum_width_unit
.
Example usage:
Set the unit for the max-width:
Can be:
vh
vw
px (default)
em
rem
Example usage:
The overall alignment of the Quote container.
Can be:
left
center (default)
right
wide
full
Example usage:
Whether the permalink has an anchor or not.
Can be:
true (default)
false
Default empty. Define an anchor here that'll be appended to the permalink.
The shortcode argument has_anchor
must be set to true and enable_links_in_tweet
must be true.
Example usage:
This would result in a URL like:
This enables or disables a permalink displaying when sharing to Twitter/X.
Can be:
true (default)
false
Example usage:
Whether to use a URL shortening service or not.
Can be:
true
false (default)
Determine which service you'd like to shorten your links with.
Can be:
manual
bitly
jetpack
Bitly and Jetpack are separate plugins, so you'll need to install and configure those for shortlinks.
This allows you to put in a custom link for sharing on Twitter/X.
The url_shortening_service
must be manual
for manual permalinks to work.
Example usage:
Enable or disable the meatball contextual menu.
Can be:
true (default)
false
Global contextual menu settings will override this value.
Enable or disable the ability to copy the quote's permalink in the contextual menu.
Can be:
true (default)
false
A valid permalink for the quote must be specified so that the option appears in the contextual menu.
Enable or disable the ability to copy the quote from the contextual menu.
Can be:
true (default)
false
Enable or disable the ability to copy the Twitter/X text that will be generated, including permalink and hashtags.
Can be:
true (default)
false
Enable or disable the ability to Post to Twitter/X from the contextual menu.
Can be:
true (default)
false
Enable or disable the ability to email the quote from the contextual menu.
Can be:
true
false (default)
Enable or disable the ability to post the quote's URL with Facebook.
Can be:
true
false (default)
The label for the email button in the contextual menu.
Default: Email Quote
The label to copy the quote in the contextual menu.
Default: Copy Quote
The label to copy the generated Tweet/Post in the contextual menu.
Default: Copy X Post
The label to copy the quote's permalink in the contextual menu.
Default: Copy Link
The label to post to Twitter/X from the contextual menu.
Default: Post This
The label to post to Facebook from the contextual menu.
Default: Share This
Whether to display a citation section for the quote.
Can be:
true
false (default)
Example usage:
Whether to display a citation image on the quote for the citation.
Can be:
true (default)
false
Whether to display an author field on the quote for the citation.
Can be:
true (default)
false
The string value that goes into the author field for the quote.
Whether to display a title field on the quote for the citation.
Can be:
true (default)
false
The string value that goes into the title field for the citation.
Whether to display a third source field where you can leave attribution.
Can be:
true
false (default)
The string value to go into the citation source field.
The URL to the image used for the citation author.
The appearance of the citation image.
Can be:
round (default)
square
Whether to add a border around the citation image.
Can be:
true (default)
false
The alignment of the citation.
Can be:
left (default)
center
right