• Resolved Denny

    (@ddahly)


    I would like to add short code for documentation but don’t want the code to activate. I have seen many post showing the code in tact, then copy and paste into site.

    Example:

    There are several attributes that are supported by the [promoslider] shortcode:
    1.id – You can assign a promotion slider its own HTML id attribute so you can easily customize the CSS for a particular instance of the slider. Example: [promoslider id=”my_id”]
    2.width – Set the width of the carousel to fit your needs. By default, the width of the slider will automatically fit the space it is given. You can define the width using pixels or a percentage. Example: [promoslider width=”600px”] OR [promoslider width=”90%”]

    Any ideas — thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m not sure what you’re asking here – are you trying to create your own shortcode and need help understanding how attributes work, or something else?

    Thread Starter Denny

    (@ddahly)

    Hi Barry — I’m making documentation on my website using a page.

    I would like to list my short code on the page like the example but don’t want the shortcut to activate the program when I list them on the page.

    Thanks for replying

    Denis

    Oh, I see.

    The only way I can think of off the top of my head would be to create a new shortcode that works in this sort of fashion:

    [noshortcodeparsing]
        ...your list of shortcodes here...
    [/noshortcodeparsing]
    Thread Starter Denny

    (@ddahly)

    Barry thank you so much for your help, after searching Google with the correct terminology I found this website with some great information. Thank you again — Denis

    https://www.vicchi.org/codeage/wp-shortcode-shield/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Documenting shot code’ is closed to new replies.