WordPress.org

Forums

[resolved] Documenting shot code (5 posts)

  1. Denny
    Member
    Posted 2 years ago #

    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 :)

  2. Barry Hughes
    Member
    Posted 2 years ago #

    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?

  3. Denny
    Member
    Posted 2 years ago #

    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

  4. Barry Hughes
    Member
    Posted 2 years ago #

    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]
  5. Denny
    Member
    Posted 2 years ago #

    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

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

Topic Closed

This topic has been closed to new replies.

About this Topic