Tagged: x
-
AuthorPosts
-
April 30, 2016 at 1:20 pm #907115
helloariParticipantEven I saw its an issue caused by bootstrap.
Its loaded somewhere in admin & i am postive that its loaded form x theme itself.
If I just disable x theme & everything goes back to normal.BTW, have already tired disabling plugins etc. but disabling theme works.
Please guys, instead of increasing this thread, try help me with the issue.
& this css fix is useless, as many places css is broken. Go to admin login page, it looks weird then normal admin page…
I am tried replying on this thread, just help me sort this issue out.
May 1, 2016 at 5:55 am #907696
ChristianModeratorHey there,
This is not an issue with X but rather has to do with your custom functions. As said previously in this reply 893686, disable all customizations so we know quickly if this is a problem with X or not. And, sure enough, after I deleted all custom functions in functions.php of your staging site, your admin CSS was fixed (see attachment). Here’s your code in functions.php.
// Additional Functions // ============================================================================= /* modified original template files - /wp-content/themes/x/framework/functions/global/featured.php ---> function x_featured_image() */ /************************/ /* INCLUDES */ /************************/ include 'cornerstone-modules/image-with-text-and-button.php'; include 'cornerstone-modules/custom-recent-posts.php'; include 'cornerstone-modules/image-flipcard.php'; include 'cornerstone-modules/custom-raw-content.php'; // widgets include 'includes/widgets/widgets.php'; /**/ /*******************************/ /* GLOBAL VARIABLES */ /*******************************/ /**/ /**************************/ /* SETTINGS FOR WP */ /**************************/ /**/ /********************************/ /* CSS & JQUERY */ /********************************/ add_action('wp_enqueue_scripts', 'x_child_enqueue_scripts'); function x_child_enqueue_scripts() { /* JS */ wp_enqueue_script( 'x_child_site_js', get_stylesheet_directory_uri() . '/js/site.js', array('jquery') ); } wp_enqueue_style('bootstrap_css', 'http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'); //wp_enqueue_script('bootstrap_js', 'http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'); wp_enqueue_style('font_awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'); /**/ /*************************/ /* OTHER FUNCTIONS */ /*************************/ function get_the_content_by_id($post_id, $format = false) { $page_data = get_page($post_id); if ( $page_data ) { if ( $format === true ) { return apply_filters('the_content',$page_data->post_content); } else { return $page_data->post_content; } } return false; } function get_the_excerpt_by_id($post_id, $text_length) { global $post; $save_post = $post; $post = get_post($post_id); $output = $post->post_excerpt; $post = $save_post; if ( empty($text_length) ) { $text_length = 55; } if($output == ''){ $output = get_the_content_by_id($post_id); $output = strip_shortcodes( $output ); $output = apply_filters('the_content', $output); $output = str_replace(']]>', ']]>', $output); $output = strip_tags($output); $output = nl2br($output); $excerpt_length = apply_filters('excerpt_length', $text_length); $words = explode(' ', $output, $excerpt_length + 1); if (count($words) > $excerpt_length) { array_pop($words); array_push($words, '...'); $output = implode(' ', $words); } } return $output; } function x_featured_image( $cropped = '' ) { $stack = x_get_stack(); $fullwidth = ( in_array( 'x-full-width-active', get_body_class() ) ) ? true : false; if ( has_post_thumbnail() ) { if ( $cropped == 'cropped' ) { if ( $fullwidth ) { $thumb = get_the_post_thumbnail( NULL, 'entry-cropped-fullwidth', NULL ); } else { $thumb = get_the_post_thumbnail( NULL, 'entry-cropped', NULL ); } } else { if ( $fullwidth ) { $thumb = get_the_post_thumbnail( NULL, 'entry-fullwidth', NULL ); } else { $thumb = get_the_post_thumbnail( NULL, 'entry', NULL ); } } if (is_home()){ $thumb = get_the_post_thumbnail( NULL, 'large-600', NULL ); } switch ( is_singular() ) { case true: printf( '<div class="entry-thumb">%s</div>', $thumb ); break; case false: printf( '<a href="%1$s" class="entry-thumb" title="%2$s">%3$s</a>', esc_url( get_permalink() ), esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ), $thumb ); break; } } } /**/ /**************************/ /* Sidebars */ /**************************/ /**/ /************************/ /* METABOX */ /************************/ /**/ /*************************************/ /* SAVE POST / METABOX / etc... */ /*************************************/ /**/ /*******************/ /* CPT */ /*******************/ /**/ /**************************/ /* Taxonomies */ /**************************/ /**/ /*********************/ /* Roles */ /*********************/ /**/ /*******************************/ /* ADD ACTION */ /*******************************/ /* add new image size */ add_action( 'after_setup_theme', 'yogagarden_add_image_size_function', 11 ); function yogagarden_add_image_size_function() { add_image_size( 'large-600', 600, 600, true ); } /**/ /********************************/ /* FILTERS */ /********************************/ /* add new image size name to WP admin */ add_filter( 'image_size_names_choose', 'yogagarden_image_size_names_choose' ); function yogagarden_image_size_names_choose( $sizes ) { return array_merge( $sizes, array( 'large-600' => __( 'Large (600px)' ), ) ); } /**/ /********************************/ /* SHORTCODES */ /********************************/ /**/ /*******************************/ /* AJAX */ /*******************************/ /**/ /*******************************/ /* X THEME OVERWRITES */ /*******************************/ // Output Primary Navigation // ============================================================================= if ( ! function_exists( 'x_output_primary_navigation' ) ) : function x_output_primary_navigation() { //echo '<div class="get-the-app"> <a href="https://itunes.apple.com/us/app/yoga-garden-sf/id938329514?mt=8" class="ios"></a> <a href="https://play.google.com/store/apps/details?id=com.fitnessmobileapps.yogagardensf" class="android"></a> </div>'; //echo '<div class="get-the-app"><div style="font-size: 14px;text-align: center;">OUR APP</div><a href="https://itunes.apple.com/us/app/yoga-garden-sf/id938329514?mt=8" title="Find us on iTunes"><i class="fa fa-apple fa-2x"></i></a> <a href="https://play.google.com/store/apps/details?id=com.fitnessmobileapps.yogagardensf" title="Find us on Google Play"><i class="fa fa-android fa-2x"></i></a> </div>'; if ( x_is_one_page_navigation() ) { wp_nav_menu( array( 'menu' => x_get_one_page_navigation_menu(), 'theme_location' => 'primary', 'container' => false, 'menu_class' => 'x-nav x-nav-scrollspy', 'link_before' => '<span>', 'link_after' => '</span>' ) ); } elseif ( has_nav_menu( 'primary' ) ) { wp_nav_menu( array( 'theme_location' => 'primary', 'container' => false, 'menu_class' => 'x-nav', 'link_before' => '<span>', 'link_after' => '</span>' ) ); } else { echo '<ul class="x-nav"><li><a href="' . home_url( '/' ) . 'wp-admin/nav-menus.php">Assign a Menu</a></li></ul>'; } } endif; /** * Event Calender */ /** * Used in list loop, displays the date headers between events in the loop when the month / year has changed * **/ function tribe_events_list_the_date_headers_override() { /* Month and year separators (on every month and year change) */ $show_headers = apply_filters( 'tribe_events_list_show_date_headers', true ); $html = ''; if ( $show_headers ) { global $post, $wp_query; $event_year = tribe_get_start_date( $post, false, 'Y' ); $event_month = tribe_get_start_date( $post, false, 'm' ); $month_year_format = tribe_get_date_option( 'monthAndYearFormat', 'F Y' ); if ( $wp_query->current_post > 0 ) { $prev_post = $wp_query->posts[ $wp_query->current_post - 1 ]; $prev_event_year = tribe_get_start_date( $prev_post, false, 'Y' ); $prev_event_month = tribe_get_start_date( $prev_post, false, 'm' ); } /* * If the event month changed since the last event in the loop, * or is the same month but the year changed. * */ if ( $wp_query->current_post === 0 || ( $prev_event_month != $event_month || ( $prev_event_month == $event_month && $prev_event_year != $event_year ) ) ) { //$html .= sprintf( "<span class='tribe-events-list-separator-month'><span>%s</span></span>", tribe_get_start_date( $post, false, $month_year_format ) ); $html .= sprintf( "<h2 class='h-custom-headline center-text h3 accent'><span>%s</span></h2>", tribe_get_start_date( $post, false, $month_year_format ) ); } echo apply_filters( 'tribe_events_list_the_date_headers', $html, $event_month, $event_year ); } }Please seek help from a web developer to investigate your code.
Hope that helps. 🙂
May 2, 2016 at 6:24 am #908886
helloariParticipantvoila!!!
You can close this ticket. 🙂May 2, 2016 at 7:16 am #908944
ChristianModeratorThanks. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-890060 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
