RDStudent
Forum Replies Created
Viewing 8 replies - 1 through 8 (of 8 total)
-
Forum: Themes and Templates
In reply to: WP3.8 Custom theme doesn't display admin barAhh stupid, I needed a footer…
Forum: Hacks
In reply to: Page Navigation Next PrevOMG … I already found this but I forgot to add the ‘category_name’ => ‘for-sale’ part to the new query… OMG Im such a donkey!!
Thank you so so sooooo much Chris!
Forum: Themes and Templates
In reply to: Next and Prev page work but content doesn't !Please I am still stuck here.. I have tried over 20 combinations for the docs here but it seems like I am just banging my head against the wall.. Please help!
Forum: Themes and Templates
In reply to: Next and Prev page work but content doesn't !My query reset is right under controls do i need to move it else where?
<!-- Start controls div --> <div class="row"> <?php global $wp_query; if($wp_query->max_num_pages > 1) : ?> <div class="large-6 columns"> <?php previous_posts_link('← Previus Page', $wp_query->max_num_pages);?> </div><!-- Control Left --> <div class="large-6 columns"> <?php next_posts_link('Next Page →', $wp_query->max_num_pages);?> </div><!-- Control Right --> <?php endif;?> </div><!-- Controls Div --> <?php // Reset Query wp_reset_query(); ?>Forum: Themes and Templates
In reply to: How can find out what category is post from? or better?Thanks this will do….
Forum: Themes and Templates
In reply to: Foundation 4 Orbit >> Making it work in WPI got the solution I needed to init additional script
Here is how my functions.php look like
<?php function _sf_scripts() { wp_enqueue_script('foundation-js', get_template_directory_uri().' /js/foundation.min.js', array( 'jquery' ), false, true); wp_enqueue_script('foundation-init', get_template_directory_uri().'/js/foundation-orbit.js', array(), false, true); wp_enqueue_script( 'menu-effect', get_template_directory_uri() . '/js/menu.js', array(), '1.0.0', true ); } add_action( 'wp_enqueue_scripts', '_sf_scripts' ); add_action( 'wp_footer', 'so20558071_foundation_init', 9999 ); function so20558071_foundation_init() { echo '<script>jQuery(document).foundation();</script>'; } ?>Forum: Themes and Templates
In reply to: Foundation 4 Orbit >> Making it work in WP<!--- Current Footer ---> <!-- Java Scripts --> <script> document.write('<script src= <?php bloginfo('template_url'); ?>' + ('__proto__' in {} ? 'js/vendor/zepto' : 'js/vendor/jquery') + '.js><\/script>') </script> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/foundation.min.js"></script> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/foundation/foundation.orbit.js"></script> <script> $(document).foundation(); </script> <?php wp_footer(); ?> // I have tried few different version of this <!-- Functions --> <!-- Sample 1 --> function load_my_java() { wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/foundation-min.js', array(), '', true ); } add_action( 'wp_enqueue_scripts', 'load_my_java' ); <!-- Sample 2 --> function load_my_java() { wp_register_script( 'foundation', get_template_directory_uri() . '/js/foundation-min.js', array(), '', true ); wp_enqueue_script('foundation'); add_action( 'init', 'load_my_java' );So far none of it worked, they did load I could see them in the source but not functional.
Forum: Themes and Templates
In reply to: Foundation 4 Orbit >> Making it work in WPAnyone ???
Viewing 8 replies - 1 through 8 (of 8 total)