Title: ddot.webmaster's Replies | WordPress.org

---

# ddot.webmaster

  [  ](https://wordpress.org/support/users/ddotwebmaster/)

 *   [Profile](https://wordpress.org/support/users/ddotwebmaster/)
 *   [Topics Started](https://wordpress.org/support/users/ddotwebmaster/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ddotwebmaster/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ddotwebmaster/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ddotwebmaster/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ddotwebmaster/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ddotwebmaster/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Accordion Shortcodes] How do initially open different accordion panel other than this first?](https://wordpress.org/support/topic/how-do-initially-open-different-accordion-panel-other-than-this-first/)
 *  Thread Starter [ddot.webmaster](https://wordpress.org/support/users/ddotwebmaster/)
 * (@ddotwebmaster)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-do-initially-open-different-accordion-panel-other-than-this-first/#post-6666721)
 * Okay. Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Accordion Shortcodes] How do initially open different accordion panel other than this first?](https://wordpress.org/support/topic/how-do-initially-open-different-accordion-panel-other-than-this-first/)
 *  Thread Starter [ddot.webmaster](https://wordpress.org/support/users/ddotwebmaster/)
 * (@ddotwebmaster)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-do-initially-open-different-accordion-panel-other-than-this-first/#post-6666618)
 * Adding the #id is really just a work around, not a solution.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Accordion Shortcodes] How do initially open different accordion panel other than this first?](https://wordpress.org/support/topic/how-do-initially-open-different-accordion-panel-other-than-this-first/)
 *  Thread Starter [ddot.webmaster](https://wordpress.org/support/users/ddotwebmaster/)
 * (@ddotwebmaster)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/how-do-initially-open-different-accordion-panel-other-than-this-first/#post-6666554)
 * I figured it out! In the main navigation menu, under appearance, I used the Custom
   Links navigation button (instead of the Pages navigation button), and entered
   a custom link like this:
    [http://domain.com/directory/page#item](http://domain.com/directory/page#item)
 * It worked! Simple. But the problem with this method is that the target ID forces
   the page to scroll up to that accordion panel. I would prefer that the page stay
   at the top.
 * So I was originally thinking if something like the following could exist:
    (1)
   In the container accordion this would be false: openfirst=false (2) And then 
   in the nested accordion: open=true. How would the code be rewritten to do something
   like the above?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Accordion Shortcodes] Link to expand a specific accordion for Accordion Shortcodes plugin](https://wordpress.org/support/topic/link-to-expand-a-specific-accordion-for-accordion-shortcodes-plugin/)
 *  Thread Starter [ddot.webmaster](https://wordpress.org/support/users/ddotwebmaster/)
 * (@ddotwebmaster)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/link-to-expand-a-specific-accordion-for-accordion-shortcodes-plugin/#post-6651889)
 * I found a plugin called “Insert PHP” so I can run PHP code inserted into specific
   WordPress posts and pages thus not interfering with other shortcodes.
    [https://wordpress.org/plugins/insert-php/](https://wordpress.org/plugins/insert-php/)
 * In regard to the “Collapse-O-Matic” plugin, I disabled it. I will use JavaScript
   as a substitution which allows me to continue to use your Accordion Shortcodes
   plugin.
 *     ```
       function toggle_visibility(id) {
              var e = document.getElementById(id);
              if(e.style.display == 'block')
                 e.style.display = 'none';
              else
                 e.style.display = 'block';
           }
       ```
   
 * Thank you for developing this plugin. I will submit a donation.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Accordion Shortcodes] Spacing Between Accordion](https://wordpress.org/support/topic/spacing-between-accordion/)
 *  [ddot.webmaster](https://wordpress.org/support/users/ddotwebmaster/)
 * (@ddotwebmaster)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/spacing-between-accordion/#post-6510047)
 * Opps! I’ve entered this post in the wrong thread. Please delete.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Accordion Shortcodes] Link to expand a specific accordion for Accordion Shortcodes plugin](https://wordpress.org/support/topic/link-to-expand-a-specific-accordion-for-accordion-shortcodes-plugin/)
 *  Thread Starter [ddot.webmaster](https://wordpress.org/support/users/ddotwebmaster/)
 * (@ddotwebmaster)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/link-to-expand-a-specific-accordion-for-accordion-shortcodes-plugin/#post-6651846)
 * I think I found the solution about “Spacing Between Accordion”
    [https://wordpress.org/support/topic/spacing-between-accordion?replies=2](https://wordpress.org/support/topic/spacing-between-accordion?replies=2)
 *     ```
       /**
        * Fixes empty <p> and <br> tags showing before and after shortcodes in the
        * output content.
        */
       function pb_the_content_shortcode_fix($content) {
       	$array = array(
       		'<p>['    => '[',
       		']</p>'   => ']',
       		']<br />' => ']',
       		']<br>'   => ']'
       	);
   
       	return strtr($content, $array);
       }
       add_filter('the_content', 'pb_the_content_shortcode_fix');
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Accordion Shortcodes] Link to expand a specific accordion for Accordion Shortcodes plugin](https://wordpress.org/support/topic/link-to-expand-a-specific-accordion-for-accordion-shortcodes-plugin/)
 *  Thread Starter [ddot.webmaster](https://wordpress.org/support/users/ddotwebmaster/)
 * (@ddotwebmaster)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/link-to-expand-a-specific-accordion-for-accordion-shortcodes-plugin/#post-6651830)
 * I found the source of the conflict! Your plugin is now working!
 * I disabled the “Collapse-O-Matic” plugin:
    [https://wordpress.org/plugins/jquery-collapse-o-matic/](https://wordpress.org/plugins/jquery-collapse-o-matic/)
 * By disabling the other plugin, the accordions have _large margin space above_
   and below. How do I tighten the space?
 * Circling back, have you or others encountered this conflict of links not expanding
   a specific accordion due to a plugin conflict? Is there solution.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Accordion Shortcodes] Link to expand a specific accordion for Accordion Shortcodes plugin](https://wordpress.org/support/topic/link-to-expand-a-specific-accordion-for-accordion-shortcodes-plugin/)
 *  Thread Starter [ddot.webmaster](https://wordpress.org/support/users/ddotwebmaster/)
 * (@ddotwebmaster)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/link-to-expand-a-specific-accordion-for-accordion-shortcodes-plugin/#post-6651816)
 * There must be a conflict on my site since you tested it on a fresh installation
   of WordPress and it’s working on that fresh install. I will start disabling plugins
   on my site. Maybe I will find the conflict.
 * I am using a “TwentyTwelve” child theme.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Accordion Shortcodes] Link to expand a specific accordion for Accordion Shortcodes plugin](https://wordpress.org/support/topic/link-to-expand-a-specific-accordion-for-accordion-shortcodes-plugin/)
 *  Thread Starter [ddot.webmaster](https://wordpress.org/support/users/ddotwebmaster/)
 * (@ddotwebmaster)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/link-to-expand-a-specific-accordion-for-accordion-shortcodes-plugin/#post-6651815)
 * Yes. I read this:
 * > **Opening an Accordion Via ID**
   >  You can optionally add a unique ID to each
   > of your accordion items and then use that ID in the URL to open that item by
   > default. For example, say you have the following accordions:
   >     ```
   >     [accordion]
   >     [accordion-item id="item-1" title="Title #1"]Drop-down content goes here.[/accordion-item]
   >     [accordion-item id="item-2" title="Title #2"]Drop-down content goes here.[/accordion-item]
   >     [accordion-item id="item-3" title="Title #3"]Drop-down content goes here.[/accordion-item]
   >     [/accordion]
   >     ```
   > 
 * Found on my site in the closed accordion panel, the ID name is id=accordion_04.
 * The link URL targets:
    [http://ddotsites.com/onboarding/signature-programs/#accordion_04](http://ddotsites.com/onboarding/signature-programs/#accordion_04)
 * I am targeting a specific accordion which does _not_ expand, it stays closed.

Viewing 9 replies - 1 through 9 (of 9 total)