TablePress CSS is not working with custom theme
-
I was building a wordpress website for my client and it needed the TablePress plugin. I installed the plugin correctly but the CSS for the table doesn’t seem to be working. I tried activating other themes (twentytwelve) and it worked but didn’t work in my theme. I couldn’t figure out what went wrong with my theme.
Here is the link to the page where I used table
https://dev.riseofaryan.com/shadowtrademe/And here is the debug and version information
· Website: https://dev.riseofaryan.com/shadowtrademe · TablePress: 1.4 · TablePress (DB): 24 · TablePress table scheme: 3 · Plugin installed: 2014/05/14 16:29:52 · WordPress: 3.9.1 · Multisite: no · PHP: 5.4.25 · mysqli Extension: false · mySQL (Server): 5.1.73-cll · mySQL (Client): 5.1.73 · ZIP support: no · UTF-8 conversion: yes · WP Memory Limit: 40M · Server Memory Limit: 256M · Magic Quotes: off · WP_DEBUG: false · WP_POST_REVISIONS: true
Not sure but I doubt in my function.php file, and here is my code for function.php
<?php add_action( 'after_setup_theme', 'riseofaryan_setup' ); if ( ! function_exists( 'riseofaryan_setup' ) ): function riseofaryan_setup() { add_editor_style(); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'menus' ); add_theme_support( 'post-thumbnails' ); if(function_exists('register_nav_menus')) { register_nav_menus(array( 'main-menu' => __( 'Main Menu' ), 'footer-menu' => __( 'Footer Menu' ) )); } } endif; // riseofaryan_setup // Register Custom Navigation Walker require_once('wp_bootstrap_navwalker.php'); define('THEME_URL', get_template_directory_uri()); define('PARENT_DIR', get_template_directory() ); /* -- Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link -- */ function riseofaryan_page_menu_args( $args ) { $args['show_home'] = true; return $args; } add_filter( 'wp_page_menu_args', 'riseofaryan_page_menu_args' ); function riseofaryan_widgets_init() { register_sidebar( array( 'name' => __( 'Bottom Bar Widgets', $short_name ), 'before_widget' => '<div class="width25"><div class="bottom-wdgt">', 'after_widget' => "</div></div><!-- .width25 -->", 'before_title' => '<h2>', 'after_title' => '</h2>', ) ); } add_action( 'widgets_init', 'riseofaryan_widgets_init' ); function buttombar_widget() { if ( !function_exists( 'dynamic_sidebar' ) || !dynamic_sidebar( 'Bottom Bar Widgets' ) ); } function excerpt($limit) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(" ",$excerpt).'...'; } else { $excerpt = implode(" ",$excerpt); } $excerpt = preg_replace('<code>\[[^\]]*\]</code>','',$excerpt); return $excerpt; } function content($limit) { $content = explode(' ', get_the_content(), $limit); if (count($content)>=$limit) { array_pop($content); $content = implode(" ",$content).'...'; } else { $content = implode(" ",$content); } $content = preg_replace('/\[.+\]/','', $content); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); return $content; } function get_thumb($width, $height){ global $post; $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, '' ); if (has_post_thumbnail()){ echo '<img src="'.get_template_directory_uri().'/timthumb.php?src='.$src[0].'&a=t&w='.$width.'&h='.$height.'&zc=1&q=100" alt="'.get_the_title().'" title="'.get_the_title().'" />'; } else { echo '<img src="'.get_template_directory_uri().'/timthumb.php?src='.get_template_directory_uri().'/images/no-img.jpg&w='.$width.'&h='.$height.'&zc=1&q=100" />'; } } ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Thanks in advance.
Regards,
Aryan
- The topic ‘TablePress CSS is not working with custom theme’ is closed to new replies.