- This topic has 4 replies, 3 voices, and was last updated 7 years, 4 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP Lightbox Ultimate › I would like to see the actual code for the shortcode's
I would like to see the actual code for the shortcode’s for WP Lightbox Ultimate so I can code item in the pages without using the shortcode
Thank you, Ron
If that’s all you want to do; there is the do_shortcode() function:
https://developer.wordpress.org/reference/functions/do_shortcode/
Using do_shortcode() is less error prone than trying to dig into the plugin code.
This is not at all what I ask – I guess I did not make clear –
WP Lightbox Ultimate has several shortcode in a drop down list, I would like to see each line of code that made up each of those shortcodes. I need to be able hand code in html some of them because the theme I mm using does not display the text links visually correct.
Thank you, Ron
P.S. thank you also for your fast responce to my original question.
Thats not how shortcodes work. The code is rendered dynamically on the front-end when that shortcode is being executed. Whatever you are trying to do is not a standard practice for WP Shortcodes. You are suppose to use the shortcodes in the WordPress’s post/page editor or sidebar. You can also call a PHP function if you want to use it from your theme’s template file.
You could potentially do the following to get what you are after:
1) Create a test page then put a shortcode in there (nothing but the shortcode)
2) Then view the page from the front-end.
3) Using HTML code inspection (web developer tool), you can view the HTML source and copy the code from there.
Thank you, that will work…