[Support request] Include HTML as ShortCode

Home Forums Support [Support request] Include HTML as ShortCode

Home Forums Support Include HTML as ShortCode

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #755154
    RAJAN

    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?

    #755439
    David
    Staff
    Customer Support

    Hi there,

    what happens if you add the code using the Code Snippets plugin?

    #757816
    RAJAN

    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.

    #757871
    Tom
    Lead Developer
    Lead Developer

    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?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.