Accordion Shortcodes
[resolved] how do i add text to the menu? (3 posts)

  1. focallocal
    Posted 2 years ago #

    i can see how to add text to the dropdown items, but cant find how to add text to their parent.



  2. Phil Buchanan
    Plugin Author

    Posted 2 years ago #

    You can only add text as the title or text as the content of the drop down. For example:

    [accordion][accordion-item title="Some title"]Some content[/accordion-item][/accordion]

    will output this HTML:

    <div class="accordion">
        <h3 class="accordion-title">Some title</h3>
        <div class="accordion-content">
            Some content

    There is no way to add text or code anywhere else using this plugin.

  3. bdew
    Posted 2 years ago #

    Well, maybe there is a way:-

    In the child theme's style.css I have:

    .accordion-title i {
    	color: darkred;    /* our revision note use <i> tag  */
    	line-height: 75%;
    	font-size: 75%;
    	font-style: italic;
    	text-decoration: none;
    	position: relative;
    	left: 3em;

    In the page I have:
    [accordion-item title="Club 200 <i>January winners added</i>" tag="h2"]

    And it looks similar to: Club 200 January winners added

    ... and that is *very* useful

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Accordion Shortcodes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic