Forum Replies Created
-
AuthorPosts
-
first of all thanks for teh support guys..
My bad, i was a bit unclear.. the additional hr element worked just as adding the closing and opening divs..to be more accurat.. my problem wasnt that missing part but the missing of the closing divs form another color section element further down the page.. eg:
- header
- stuff
- color section
- accordion [removed]
- stuff [missing before, but solved]
- another color section [missing ending divs]
- masonry gallery [because of the missing ending div rendered inside the color section]
- google maps [same here]
- footer [same here]
so by removing the shortcode i threw out the endings for“fullwidth” element divs i guess.. any posibillity to get them back?
Hi Devin,
well that would be the case for just
strip_shortcodes()
anyhow i used the wrong hook its now worikng/** * REMOVE Shortcodes */ if ( ! function_exists( 'remove_accordion_shortcode' ) ) { function remove_accordion_shortcode(){ return ""; } } if ( ! function_exists( 'shortcode_cleaner_accordion' ) ) { function shortcode_cleaner_accordion() { remove_shortcode( 'av_slideshow_accordion' ); add_shortcode( 'av_slideshow_accordion', 'remove_accordion_shortcode' ); } } add_action( 'wp_loaded', 'shortcode_cleaner_accordion' );
BUT afterwards the section divs (from the prealso were gone.. so i put them back into the shortcode..
/** * REMOVE Shortcodes */ if ( ! function_exists( 'remove_accordion_shortcode' ) ) { function remove_accordion_shortcode(){ $output .= " </div>"; // <!-- CLOSE entry-content-wrapper --> $output .= " </div>"; // <!-- CLOSE post-entry --> $output .= " </div>"; // <!-- close content main div --> $output .= " </div>"; // <!-- CLOSE container --> $output .= " </div>"; // <!-- CLOSE avia-sectio --> $output .= " <div class='main_color container_wrap fullsize'>"; // <!-- new section --> $output .= " <div class='container'>"; $output .= " <div class='template-page content twelve alpha units'>"; $output .= " <div class='post-entry post-entry-type-page post-entry-2'>"; $output .= " <div class='entry-content-wrapper clearfix'>"; return $output; } } if ( ! function_exists( 'shortcode_cleaner_accordion' ) ) { function shortcode_cleaner_accordion() { remove_shortcode( 'av_slideshow_accordion' ); add_shortcode( 'av_slideshow_accordion', 'remove_accordion_shortcode' ); } } add_action( 'wp_loaded', 'shortcode_cleaner_accordion' );
This fixed the missing divs on “old” accordion position.. BUT the closing divs of a colorsection went missing to.. but i got no clue why.. any idea?
-
AuthorPosts