• Resolved davidnskidmore

    (@davidnskidmore)


    This is my shortcode:

    [accordion title="Client Services"]
    [accordion-item title="Accounting Services"]Providing financial information to our clients in a timely and accurate manner is a commitment that we feel cannot be compromised. Meaningful, well-organized financial records ensure that your business operations will run more efficiently on a daily basis. Our firm provides a full range of cost effective accounting services including the following:
    
    <ul>
    <li>General ledger and financial statement preparation</li>
    <li>Bookkeeping (Monthly/Quarterly/Annual)</li>
    <li>Accounting system setup for new businesses</li>
    <li>Compilation of financial statements</li>
    </ul>
    [/accordion-item]
    
    [accordion-item title="Financial Forecasts and Projections"]Forecasting is a necessity when trying to effectively manage and lead a business to profitability. From simple projections to complex financial modelling, our experienced staff can assist you in achieving your company's financial goals.
    [/accordion-item]
    [/accordion]

    This is the output:

    <ul class="accordion"></ul>

    Active plugins are:

    Accordion Shortcodes
    Deactivate | Edit | Documentation
    Adds a few shortcodes to allow for accordion dropdowns.
    Version 1.3 | By Phil Buchanan

    Limit Login Attempts
    Deactivate | Edit
    Limit rate of login attempts, including by way of cookies, for each IP.
    Version 1.7.1 | By Johan Eenfeldt | Visit plugin site

    RSS Multi Importer
    Deactivate | Edit
    All-in-one solution for importing & merging multiple feeds. Make blog posts or display on a page, excerpts w/ images, 9 templates, categorize and more.
    Version 2.67.64 | By Allen Weiss | Visit plugin site

    WPBakery Visual Composer
    Deactivate | Edit
    Drag and drop page builder for WordPress. Take full control over your WordPress site, build any layout you can imagine – no programming knowledge required.
    Version 3.6.14.1 | By Michael M – WPBakery.com | Visit plugin site

    WPML Multilingual CMS
    Deactivate | Edit | Configure
    Version 3.0 | By ICanLocalize | Visit plugin site

    WPBakery and WPML are not being used, but are required by the template. The footer functions seem to be coded properly in the theme, the jQuery library version that’s loaded is 1.11.0. I’m not getting any console errors. I assume there must be soem sort of conflict with the template? I’m not getting console errors, and have tested across platforms and browsers.

    https://www.ads-software.com/plugins/accordion-shortcodes/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author philbuchanan

    (@philbuchanan)

    Is an empty <ul class="accordion"></ul> the only output you are getting? You should, even if the plugin is disabled see the various list items and other content within the shortcode. Also, the plugin shouldn’t output any <ul> tags. The main accordion wrapper tag is <div class="accordion"></div> and that is what you should see in your output HTML.

    Is the accordion.min.js file being loaded near the closing </body> tag in your HTML? What theme are you using (is it custom)?

    Is it possible for you to share a link that I can take a look at?

    Thread Starter davidnskidmore

    (@davidnskidmore)

    The theme is businessbox. The accordion.min.js is not being loaded that I can see.

    <?php get_footer(); ?> is loaded at the end of the page template and

    <?php wp_footer() ?> in the footer.

    I’ve labeled *Accordion Content* Above the Accordion section and *Non-Accordion Content* after the accordion section.

    Thread Starter davidnskidmore

    (@davidnskidmore)

    Thread Starter davidnskidmore

    (@davidnskidmore)

    So you can better understand the output vs the input.

    *Accordion Content*
    
    [accordion]
    [accordion-item title="Accounting Services"] Providing financial information to our clients in a timely and accurate manner is a commitment that we feel cannot be compromised. Meaningful, well-organized financial records ensure that your business operations will run more efficiently on a daily basis. Our firm provides a full range of cost effective accounting services including the following:
    <ul>
    	<li>General ledger and financial statement preparation</li>
    	<li>Bookkeeping (Monthly/Quarterly/Annual)</li>
    	<li>Accounting system setup for new businesses</li>
    	<li>Compilation of financial statements</li>
    </ul>[/accordion-item]
    
    [accordion-item title="Financial Forecasts and Projections"] Forecasting is a necessity when trying to effectively manage and lead a business to profitability. From simple projections to complex financial modelling, our experienced staff can assist you in achieving your company's financial goals.[/accordion-item]
    [/accordion]
    
    *Non-Accordion Content*
    
    <strong>Financial Statements</strong>
    Plugin Author philbuchanan

    (@philbuchanan)

    If the accordion.min.js file isn’t loading then the page isn’t recognizing the shortcode on the page. However, the content of the shortcode should still be displaying (instead of the empty <ul> tag.

    I’ve just tried your shortcode input on a stock WordPress install and it’s working for me.

    Can you try switching to the default Twenty Fourteen theme and see if it’s still not working?

    Thread Starter davidnskidmore

    (@davidnskidmore)

    <p>*Accordion Content*</p>
    <div id="accordion"><br />
    < class="accordion-title">Accounting Services</><div class="accordion-content"> Providing financial information to our clients in a timely and accurate manner is a commitment that we feel cannot be compromised. Meaningful, well-organized financial records ensure that your business operations will run more efficiently on a daily basis. Our firm provides a full range of cost effective accounting services including the following:</p>
    <ul>
    <li>General ledger and financial statement preparation</li>
    <li>Bookkeeping (Monthly/Quarterly/Annual)</li>
    <li>Accounting system setup for new businesses</li>
    <li>Compilation of financial statements</li>
    </ul>
    <p></div>
    <p>< class="accordion-title">Financial Forecasts and Projections</><div class="accordion-content"> Forecasting is a necessity when trying to effectively manage and lead a business to profitability. From simple projections to complex financial modelling, our experienced staff can assist you in achieving your company’s financial goals.</div><br />
    </div>
    		<script>
    			jQuery(function() {
    				var icons = {
    					header: "ui-icon-plusthick",
    					activeHeader: "ui-icon-minusthick"
    				};
    				jQuery( "#accordion" ).accordion({
    					collapsible: true,
    					active: 0,
    					heightStyle: "content",
    					icons: icons,
    				});
    			});
    		</script>
    <p>*Non-Accordion Content*</p>

    It appears the H3 tag is not printed at all when using the default theme, however there is obviously some sort of conflict.

    Plugin Author philbuchanan

    (@philbuchanan)

    According to the Themeforest the theme has built in Accordions shortcodes. The theme must be using the same [accordion] naming convention (confirmed by switching to the default theme).

    I’d suggest either using the build in theme accordions or talking to the developer of that theme to see if they can be disabled.

    Thread Starter davidnskidmore

    (@davidnskidmore)

    Thanks Phil, sorry I bugged you unnecessarily.

    Plugin Author philbuchanan

    (@philbuchanan)

    No worries. That’s what I’m here for. Good luck with it.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Output Error’ is closed to new replies.