Archived topic
Include HTML as ShortCode
3 replies · Started by RAJAN on December 12, 2018
I wanted to add HTML content using shortcode. I am trying something similar to this https://eng.aurelienpierre.com/2018/05/05/make-jupyter-notebooks-easy-to-blog-in-wordpress/. I am getting error if i try this in functions.php because order of loading. Eg: functions.php is loading before shortcodes.php and error in wp_enqueue_script.
Whether there is a nicer way to do this?
Hi there,
what happens if you add the code using the Code Snippets plugin?
Thanks David. I have added the html & shortcode. Now, I don't see the "Read more" button in my Home page. I know that first block is less than 40 characters configured for "Excerpt" but the included html is not considering for Read More button.
I see one thread to show "Read more" permanently but we have to disable the default Excerpt to show the "Read more" button permanently. In this case, my Jupyter notebook is a long page and it is slowing down the home page.
Hi there,
So once the function is added, your read more buttons disappear? If you deactivate/remove the code, does it come back?
What's your shortcode function look like?