Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter RDStudent

    (@rdstudent)

    Ahh stupid, I needed a footer…

    Forum: Hacks
    In reply to: Page Navigation Next Prev
    Thread Starter RDStudent

    (@rdstudent)

    OMG … 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!

    Thread Starter RDStudent

    (@rdstudent)

    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!

    Thread Starter RDStudent

    (@rdstudent)

    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('&larr; Previus Page', $wp_query->max_num_pages);?>
              </div><!-- Control Left -->
              <div class="large-6 columns">
                <?php next_posts_link('Next Page &rarr;', $wp_query->max_num_pages);?>
              </div><!-- Control Right -->
              <?php endif;?>
            </div><!-- Controls Div -->
    
            <?php // Reset Query
                  wp_reset_query(); ?>
    Thread Starter RDStudent

    (@rdstudent)

    Thanks this will do….

    Thread Starter RDStudent

    (@rdstudent)

    I 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>';
    }
    ?>
    Thread Starter RDStudent

    (@rdstudent)

    <!--- 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.

    Thread Starter RDStudent

    (@rdstudent)

    Anyone ???

Viewing 8 replies - 1 through 8 (of 8 total)