Coda Ajax Slider

Se ha seguido el tutorial Coda Slider Effect realizado por jQuery for Designers para de trabajos. Realizando algunos pequeños cambios al archivo coda-slider.js creado por jQuery for Designers para adaptarlo a las necesidades del theme.

Consigue los Mejores Sliders en Ajax →

Modificaciones realizadas

En esta parte del código se ha añadido “width: 946px” para adaptar el estilo al theme.

// collect the scroll object, at the same time apply the hidden overflow
// to remove the default scrollbars that will appear
var $scroll = $('#slider .scroll').css(
'overflow': 'hidden'
,'width': '946px');

En la demo las imágenes de los botones se encuentran http://demo.wpesp.com/portfolio/wp-content/uploads/scroll_left.png, esta parte la deberás editar utilizando la dirección que hayas elegido para tus botones, por ejemplo, http://yoururl.com/wp-content/uploads/scroll_left.png.

Right and Left buttons

// apply our left + right buttons
$scroll
.before('<img class="scrollButtons left" src="http://demo.wpesp.com/portfolio/wp-content/uploads/scroll_left.png" alt="Left button" />')
.after('<img class="scrollButtons right" src="http://demo.wpesp.com/portfolio/wp-content/uploads/scroll_right.png" alt="Right button" />');

Se ha eliminado esta parte del código original, ya que en nuestro theme no se utiliza esta navegación. En el ejemplo de jQuery for Designers corresponde a la navegación superior.

// handle nav selection
function selectNav() {
  $(this)
    .parents('ul:first')
      .find('a')
        .removeClass('selected')
      .end()
    .end()
    .addClass('selected');
}

$('#slider .navigation').find('a').click(selectNav);

// go find the navigation link that has this target and select the nav
function trigger(data) {
  var el = $('#slider .navigation').find('a[href$="' + data.id + '"]').get(0);
  selectNav.call(el);
}

if (window.location.hash) {
  trigger({ id : window.location.hash.substr(1) });
} else {
  $('ul.navigation a:first').click();
}

También se han eliminado las siguientes líneas que corresponden al navegador anterior.

navigation: '.thumb a',
onAfter: trigger, // our final callback

Top

12 Responses to “Coda Ajax Slider”

  1. Juan said: 1

    27-12-2008 at %H:%M 03Sat, 27 Dec 2008 15:54:57 +000057.

    Hola, nuevamente yo, quería ahcerte una consulta, cuando hago click en uno de los featured o de los normales work, cuando me carga la página, no aparece el contenido del post, solamente el header con el footer pegado a el mismo.

    A que se debe esto? Que hice mal?

    muchas gracias!

  2. Víctor said: 2

    27-12-2008 at %H:%M 07Sat, 27 Dec 2008 19:54:04 +000004.

    Según he entendido, creo que se solucionará cambiando el ID en work.php. Hay una pequeña explicación en la sección WordPress Codex => Work.php.

  3. Alguien de Perico said: 3

    11-03-2009 at %H:%M 04Wed, 11 Mar 2009 04:56:09 +000009.

    Hola Victor, muy buen theme.
    Lo usaré en mi portfolio si es que logro solucionar algo:
    Me muestra los posts del featured en la home uno bajo el otro y no de modo horizontal con los botones para pasar hacia la izquierda o derecha.

    ¿Tenés idea de como puedo solucionarlo?

    Desde ya muchas gracias che.

  4. Entrada 2 said: 4

    14-03-2009 at %H:%M 07Sat, 14 Mar 2009 19:50:59 +000059.

    [...] estilos del script coda-slider.js los localizamos en este [...]

  5. FloiT said: 5

    28-03-2009 at %H:%M 09Sat, 28 Mar 2009 09:02:53 +000053.

    yo tengo el mismo problema que Juan. He seguido con detenimiento las instrucciones. Pero no veo qué es lo que se tiene que cambiar en Work.php… ¿las letras “ID” por el número de nuestra categoría Work?:


    ID, "client_value", true);
    $company = get_post_meta($post->ID, "company_value", true);
    $deliverables = get_post_meta($post->ID, "deliverables_value", true);
    $src_featured_image = get_post_meta($post->ID, "src_featured_image_value", true);
    $view_web_site = get_post_meta($post->ID, "view_web_site_value", true);
    ?>

  6. g2 said: 6

    03-04-2009 at %H:%M 10Fri, 03 Apr 2009 10:20:59 +000059.

    Hi everbody

    I am very happy to get stared with this fantastic theme; appreciate to share this file, Victor.

    I have some questions regarding Coda Slider
    follwing tutorials and comments, I

    added ” width: 946px”
    changed link directory for right and left buttons
    then deleted 2 parts( sentence) out of original file.

    but still looks same;remains original feature with vertical scroll bar.

    Does anybody instruct me how to add the Code Slider fieature?
    I really appreciate it in advance if somebody help me

  7. Edwin said: 7

    20-05-2009 at %H:%M 02Wed, 20 May 2009 14:15:56 +000056.

    Dear WPESP,

    i’m having a problem with the coda-slider thing.
    It all worked fine on my website until i installed the lightbox plugin or any other plugin with the same sort of functionallity.

    The problem is, the images show as supposed to (with overlay) but the slider doesn’t slide anymore. i need them both to work. Anyone knows an answer?

  8. David Castillo said: 8

    28-05-2009 at %H:%M 07Thu, 28 May 2009 19:01:06 +000006.

    Hola victor, que tema tan bonito te has craneado, me gusta mucho.

    Tengo una duda, como hago para enlazar las páginas internas About o Contac-Us, he intentado de todas las formas porislbes pero siempre me arroja el problema que la página no se encuentra. He revisado la explicación y no se como solucionarlo.

    De todos modos muchas gracias pro el tema, es muy bonito.

  9. ÅB said: 9

    03-06-2009 at %H:%M 09Wed, 03 Jun 2009 21:08:39 +000039.

    I unchecked the “homepage” among others on the lightbox settings page. I now have checked Individual blog posts and Individual Pages. Worked perfectly after that. Hope that helps.

  10. Patrik said: 10

    17-06-2009 at %H:%M 05Wed, 17 Jun 2009 17:21:52 +000052.

    I can’t get this to work either… Do I have to do the tutorial on http://jqueryfordesigners.com/video.php?f=coda-slider.flv before I do your tweaks or is that already done??

  11. Pilo said: 11

    08-07-2009 at %H:%M 10Wed, 08 Jul 2009 10:25:11 +000011.

    Hola. Gracias por este theme!. Una consulta, lo instalé pero me deforma las imágenes, necesito saber cómo modificar el formato de presentación de las imágenes sin que las deforme. Gracias!!

  12. Benny said: 12

    28-12-2009 at %H:%M 06Mon, 28 Dec 2009 18:17:46 +000046.

    Hello, great theme, i want to use it. but i’ve got a question. i want that:
    If i click on the small picture that the slide show this picture and no link to the article. do you know what i mean? what have i to do.

    i hope you understand my bad english. Thx a lot !

Leave a Reply

Feed: You can subscribe vía RSS feed to this post's comments.


Arrow UpTop

term paper service