Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the question-answer domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u845912282/domains/pickplugins.com/public_html/wp-includes/functions.php on line 6121
How to Add code without it rendering

How to Add code without it rendering

Ticket for: Accordions
0
How to Add code without it rendering 1
Anonymous
Apr 26, 2023 08:09 PM 1 Answers
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe
Flag(0)

Hello I'm trying to add code inside of an accordion to be displayed as a guide, so I don't want the code to actually render on the page, but just be displayed as highlighted text. An example is I'm trying to just add "<Iframe" (not even with the close ">" tag) and it starts rendering an Iframe on my live page rather than just showing the text.

I've also tried adding this between "<code></code>" tags and also "<pre><code></code></pre>" tags and still no luck. How can I generate code and show it as just text on these accordions?

0 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
How to Add code without it rendering 2
Azizul Raju
Apr 27, 2023
Flag(0)

We recommend using a plugin called Enlighter. Here is the plugin URL - https://wordpress.org/plugins/enlighter/

After installing the plugin, wrap your code with "

" tag with a class name EnlighterJSRAW.
Example: "

your code here

"

NB: please install the latest version of the accordion(2.2.72). There was a bug on pre tag, and we have to fix it on the latest version.

Would you mind wring a review for our Accordion plugin? It'll inspire us a lot. You can post your review here - https://wordpress.org/support/plugin/accordions/reviews/

Thank you so much.

Sign in to Reply
Replying as Submit


Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/u845912282/domains/pickplugins.com/public_html/wp-content/plugins/post-grid/includes/functions-builder.php on line 10