Problema con enlaces en sidebar personalizado

  • Autor Autor betagamers
  • Fecha de inicio Fecha de inicio
B

betagamers

Dseda
Redactor
Buenos días, he creado para mi sitio web, un bloque en la barra lateral personalizado, el cual muestra articulos del blog de forma aleatoria, mostrando:
  • titulo
  • imagen miniatura
  • resumen

El problema es que el enlace en el titulo de los articulos, al darle click, no lleva al articulo mismo... sino que no hace nada. Al colocar el mouse sobre el enlace, este se ve que la dirección esta correcta, o al inspeccionar elemento también (lo mismo ocurre con la imagen en miniatura). Lo que me lleva a preguntarme ¿Porque no redirige el sitio al articulo enlazado?

Les dejo el codigo que tengo en el sidebar:

PHP:
<!-- JUEGOS ALEATORIOS -->
<div class="widget2">
<h3>Otros Juegos</h3>
<div class="widgetbox2">
<?php
query_posts(array('orderby' => 'rand', 'showposts' => 5));
if (have_posts()) : while (have_posts()) : the_post(); ?>
<ul class="tabs">
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>"alt="<?php the_title(); ?>" class="left" width="100px" height="100px" style="margin: 5px;"></a>
<a title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><?php the_title(); ?></a>
<p><?php the_excerpt(); ?></p>
</li>
</ul>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>

<!-- FIN JUEGOS ALEATORIOS -->

Les agradeceria mucho si pudieran ayudarme, porque le doy vueltas y vueltas al problema y no he logrado encontrar el problema...
 
Pruebalo así!!!

PHP:
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
<img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>"alt="<?php the_title(); ?>" class="left" width="100px" height="100px" style="margin: 5px;">
<div class="titulo"><?php the_title(); ?></div> 
</a>

Espero te funcione :encouragement:
 
"El problema es que el enlace en el titulo de los articulos, al darle click, no lleva al articulo mismo... sino que no hace nada."

No da error, simplemente no funciona. Si quieren pueden verlo en el sitio: Enlace eliminado

Justo en la barra lateral donde dice 'Otros Juegos' :ambivalence:
 
El código html generado tiene algunos errores, aunque ninguno tan grave como para inhabilitar los enlaces. De todas formas, puedes probar a corregirlos con este código?

Insertar CODE, HTML o PHP:
<!-- JUEGOS ALEATORIOS --> 
<div class="widget2"> 
<h3>Otros Juegos</h3> 
<div class="widgetbox2"> 
<ul class="tabs"> 
<?php 
query_posts(array('orderby' => 'rand', 'showposts' => 5)); 
if (have_posts()) : while (have_posts()) : the_post(); ?> 
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" alt="<?php the_title(); ?>" class="left" width="100px" height="100px" style="margin: 5px;"></a> 
<a title="<?php the_title(); ?>" href="<?php the_permalink() ?>"><?php the_title(); ?></a> 
<?php the_excerpt(); ?>
</li> 
<?php endwhile; ?> 
<?php endif; ?> 
</ul>
</div> 
</div> 

<!-- FIN JUEGOS ALEATORIOS -->
 
Nada :/ ... es como si el click izquierdo estuviera deshabilitado, ya que al abrir enlace en una nueva pestaña, funciona sin problemas.

Podria estar el error en algo con functions.php ??
 
Bueno el problema es un script (JS) dentro del sitio. Tendras que ir deshabilitando de a uno por uno y ver cual te da error. Porque si deshabilito el soporte para JS en tu sitio los links funcionan perfectamente!!
 
Atrás
Arriba