Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Steven Strand

    (@steppot)

    Update.

    hare is the homepage I am working on. http://an-ste.com/#wrapper

    changed the enqueue of the boxer jquery to;

    // BOXER

    function anaximander_boxer() {
    if (!is_admin()) {
    wp_register_style( ‘boxer-style’, get_template_directory_uri() . ‘/CSS/jquery.fs.boxer.css’, ‘all’ );
    wp_enqueue_style( ‘boxer-style’ );

    wp_register_script(‘jquery_boxer’, get_template_directory_uri() . ‘/js/jquery.fs.boxer.min.js’, array(), ‘1.0.0’, true );
    wp_enqueue_script( ‘jquery_boxer’);

    function anaximander_add_boxer() { ?>
    <script>
    jQuery(document).ready(function($){
    $(‘.boxer’).boxer({
    mobile: true
    });
    });
    </script>
    <?php
    }
    }
    }

    The projects are showcased in a masonry-index. And when you click the thumbnail or the title in the box you will be directed to the single post.

    Instead of getting directed to single post, I would like to make the boxer jquery to showcase project pictures in a lightbox like http://www.formuswithlove.se/

    Sitting with the content.php at the moment trying to figur out the probs. This is what I am trying out at the moment:

    <article id=”post-<?php the_ID(); ?>” class=”group index-post-container”>
    <?php
    $the_format = get_post_format();
    // If the post format is Video, show video
    if ( $the_format == ‘video’ ) {
    $custom_field_keys = get_post_custom_keys();
    foreach ( $custom_field_keys as $key => $value ) {
    $valuet = trim(substr($value, 1, 4));
    if ( ‘oemb’ == $valuet ) {
    $oembkey = $value;
    $oembvalue = get_post_custom_values($oembkey);
    if (isset($oembvalue[0])) {
    $embedhtml = ($oembvalue[0]);
    }
    }
    }
    $the_dump = get_post_custom_keys();
    /*
    echo ‘$the_dump: ‘;
    print_r($the_dump);
    */
    echo $embedhtml;
    //anaximander_output_oembed();
    }
    // If the post format is not Video, show thumbnail if available
    elseif ( has_post_thumbnail() ) { ?>
    <figure class=”the-thumbnail”>
    ” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘thales’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”>
    <?php the_content(); ?>

    </figure>
    <?php
    }
    ?>
    <header class=”index-header”>
    <h1 class=”index-title”>
    ” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘thales’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”>
    <?php the_title(); ?>

    </h1>
    </header><!– .entry-header –>
    <div class=”index-content”>
    <?php the_excerpt(); ?>
    </div><!– .entry-content –>
    </article><!– #post-<?php the_ID(); ?> –>

    Anyone that would know how to make the boxer appear while click thumbnail?

    Thread Starter Steven Strand

    (@steppot)

    @bcworkz. Thanks for the answer.

    I am designing based on theme Anaximander, and I managed to Enqueue the script in functions.php like this:

    // BOXER
    function anaximander_boxer() {
    	wp_register_style( 'boxer-style', get_template_directory_uri() . '/CSS/jquery.fs.boxer.css', 'all' );
    	wp_enqueue_style( 'boxer-style' );
    	wp_register_script('jquery_boxer', get_template_directory_uri() . '/js/jquery.fs.boxer.min.js', array(), '1.0.0', true );
    	wp_enqueue_script( 'jquery_boxer');
    }
    add_action( 'init', 'anaximander_boxer' );

    [Moderator Note: Please post code & markup between backticks or use the code button (not the blockquote button). Your posted code may now have been permanently damaged by the forum’s parser.]

    The problem I have now is to make it work in the single.php or content.php

    This is how they are looking..

    Or single.php
    http://pastebin.com/fJXLzgvm

    content.php
    http://pastebin.com/5SmETvit

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