WordPress.org

Ready to get started?Download WordPress

Forums

Tables issue in chrome (4 posts)

  1. ebenezer357
    Member
    Posted 1 year ago #

    Hi everyone, im having an issue using tables in the template with chrome. It was showing up perfect but then out of the sudden chrome is displaying a white big space before the content in one of the cells for no reason. It's showing ok on other browsers, does anyone know why this is happening?

  2. Andrew Nevins
    Volunteer Moderator
    Posted 1 year ago #

    Sorry, you need to provide a link to the issue for every thread you make.

  3. ebenezer357
    Member
    Posted 1 year ago #

    Thanks Andrew Nevins for replying, sorry for that.

    This is the link:
    http://bibliadeldiscipulo.net/catalogo/daily-walk-bible-special-leatheralmond/

    Im using a template i have made to use here. This is what i have in the template:
    I put in black the background of the title just to noticed the cells in the table. It's working perfectly in firefox and all the others, but in Chrome it's putting a Empty block there!

    <?php
    /**
     * Displays the single section of the theme.
     *
     * @package Theme Horse
     * @subpackage Clean_Retina
     * @since Clean Retina 1.0
     */
    ?>
    
    <?php get_header(); ?>
    
    <?php
    	/**
    	 * cleanretina_before_main_container hook
    	 */
    	do_action( 'cleanretina_before_main_container' );
    ?>
    
    <table width="100%" height="100%" border="0">
      <tr bgcolor="#000000" valign="top" height="0px" padding-bottom: 50px>
        <td height="76" colspan="2" align="left" valign="top"></br><h6><?php the_title(); ?></h6></br></td>
        <td width="330px" height="30px" rowspan="2" align="left" valign="top" bgcolor="#d7d7d7"><?php get_sidebar(); ?></td>
      </tr>
      <tr>
    
    <td width="160px" height="30" align="left" valign="top">
    <?php if (have_posts()) : while (have_posts()) : the_post();?>
    <?php the_content(); ?>
    <?php endwhile; endif; ?>
    
    </td>
        <td width="583" align="left" valign="top">
    
    <div style="width:95%; float:center; vertical-align:top">
    
    <!-- Description -->
    <?php
     if(qtrans_getLanguage()=='en') {
          more_fields('english_book_description');
        } else
     	{
          more_fields('spanish_book_description');
       	 }
    ?>
    
    </br>
    </br>
    
    <!-- Category -->
    <?php if(qtrans_getLanguage()=='en') : ?>
          <b>Category:</b> <?php more_fields('Category') ?>
    
    <?php else : ?>
          <b>Categoria:</b> <?php more_fields('Category') ?>
    <?php endif; ?>
    
    </br>
    
    <!-- SERIE -->
    
    <!-- serie getter -->
    <?php
    ob_start(); more_fields('serie'); $serie = ob_get_contents(); ob_end_clean();
    ?>
    
    <?php if($serie == '--')  : ?>
    	<b></b>
    
    <!-- Avivamiento Espiritual -->
    	<?php elseif($serie == 'Avivamiento espiritual' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/spiritual-revival-series/">Spiritual Revival</a>
    		</br>
    	<?php elseif($serie == 'Avivamiento espiritual' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/spiritual-revival-series/">Avivamiento espiritual</a>
    		</br>
    
    <!-- Biblia en un minuto -->
    	<?php elseif($serie == 'Biblia en un minuto' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/one-minute-bible/">One Minute Bible</a>
    		</br>
    	<?php elseif($serie == 'Biblia en un minuto' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/one-minute-bible/">Biblia en un minuto</a>
    		</br>
    
    <!-- Biblioteca Pastoral -->
    	<?php elseif($serie == 'Biblioteca Pastoral' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/pastoral-library/">Pastoral Library</a>
    		</br>
    	<?php elseif($serie == 'Biblioteca Pastoral' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/pastoral-library/">Biblioteca Pastoral</a>
    		</br>
    
    <!-- Bolsillo -->
    	<?php elseif($serie == 'Bolsillo' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/pocket/">Pocket</a>
    		</br>
    	<?php elseif($serie == 'Bolsillo' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/pocket/">Bolsillo</a>
    		</br>
    
    <!-- Devocionario -->
    	<?php elseif($serie == 'Devocionarios' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/devotionals/">Devotionals</a>
    		</br>
    	<?php elseif($serie == 'Devocionarios' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/devotionals/">Devocionarios</a>
    		</br>
    
    <!-- Dies grados basicos -->
    	<?php elseif($serie == 'Diez grados basicos' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/ten-basic-steps/">Ten Basic Steps</a>
    		</br>
    	<?php elseif($serie == 'Diez grados basicos' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/ten-basic-steps/">Diez grados básicos</a>
    		</br>
    
    <!-- El librito de las instrucciones de Dios -->
    	<?php elseif($serie == 'El librito de las instrucciones de Dios' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/gods-little-instruction-book/">God's little instructions Book</a>
    		</br>
    	<?php elseif($serie == 'El librito de las instrucciones de Dios' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/gods-little-instruction-book/">El librito de las instrucciones de Dios</a>
    		</br>
    
    <!-- Favorito -->
    	<?php elseif($serie == 'Favorito' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/favorite/">Favorite</a>
    		</br>
    	<?php elseif($serie == 'Favorito' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/favorite/">Favorito</a>
    		</br>
    
    <!-- Flet -->
    	<?php elseif($serie == 'Flet' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/flet/">Flet</a>
    		</br>
    	<?php elseif($serie == 'Flet' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/flet/">Flet</a>
    		</br>
    
    <!-- Los cinco lenguajes -->
    	<?php elseif($serie == 'Los cinco lenguajes' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/five-love-languages/">Five Love Languages</a>
    		</br>
    	<?php elseif($serie == 'Los cinco lenguajes' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/five-love-languages/">Los cinco languages</a>
    		</br>
    
    <!-- Mamá -->
    	<?php elseif($serie == 'Mama' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/mom/">Mom</a>
    		</br>
    	<?php elseif($serie == 'Mama' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/mom/">Mamá</a>
    		</br>
    
    <!-- Momentos de Quietud -->
    	<?php elseif($serie == 'Momentos de quietud' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/quiet-times/">Quiet Times</a>
    		</br>
    	<?php elseif($serie == 'Momentos de quietud' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/quiet-times/">Momentos de quietud</a>
    		</br>
    
    <!-- Promesas -->
    	<?php elseif($serie == 'Promesas' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/promises/">Promises</a>
    		</br>
    	<?php elseif($serie == 'Promesas' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/promises/">Promesas</a>
    		</br>
    
    <!-- Tesoro Devocional -->
    	<?php elseif($serie == 'Tesoro Devocional' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/30-day-devotional-treasury/">30 Day Devotional Treasury</a>
    		</br>
    	<?php elseif($serie == 'Tesoro Devocional' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/30-day-devotional-treasury/">Tesoro Devocional</a>
    		</br>
    
    <!-- Socorro -->
    	<?php elseif($serie == 'Socorro' && qtrans_getLanguage()=='en') : ?>
    
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/help/">Help!</a>
    		</br>
    	<?php elseif($serie == 'Socorro' && qtrans_getLanguage()=='es') : ?>
    		<b>Serie: &nbsp;</b><a href="http://bibliadeldiscipulo.net/series/help/">Socorro</a>
    		</br>
    
    <?php else  : ?>
    	<b></b>
    <?php endif; ?>
    
    <!-- ISBN -->
    <?php
    if(qtrans_getLanguage()=='en') {
          echo "<b>ISBN:</b> "; more_fields('isbn');
        } else
     	{
          echo "<b>ISBN:</b> "; more_fields('isbn');
       	 }
    ?>
    
    </br>
    
    <!-- Product -->
    <?php
    if(qtrans_getLanguage()=='en') {
          echo "<b>Product:</b> "; more_fields('product');
        } else
     	{
          echo "<b>Producto: </b>"; more_fields('product');
       	 }
    ?>
    
    </br>
    
    <!-- Pages -->
    <?php
    if(qtrans_getLanguage()=='en') {
          echo "<b>Pages: </b>"; more_fields('pages');
        } else
     	{
          echo "<b>Páginas:</b> "; more_fields('pages');
       	 }
    ?>
    
    </br>
    
    <!-- Medida -->
    <?php
    if(qtrans_getLanguage()=='en') {
          echo "<b>Size:</b> "; more_fields('medida');
        } else
     	{
          echo "<b>Medida:</b> "; more_fields('medida');
       	 }
    ?>
    
    </br>
    
    <!-- Cover -->
    <?php
    if(qtrans_getLanguage()=='en') {
          echo "<b>Cover:</b> "; more_fields('cubierta');
        } else
     	{
          echo "<b>Cubierta:</b> "; more_fields('cubierta');
       	 }
    ?>
    
    </br>
    
    <!-- Price -->
    <?php
    if(qtrans_getLanguage()=='en') {
          echo "<b>Price: </b>$"; more_fields('book_price');
        } else
     	{
          echo "<b>Precio: </b>$"; more_fields('book_price');
       	 }
    ?>
    
    </div>
    
    </td>
    
      </tr>
    </table>
    
    <?php
    	/**
    	 * cleanretina_after_main_container hook
    	 */
    	do_action( 'cleanretina_after_main_container' );
    ?>
    
    <?php get_footer(); ?>
  4. ebenezer357
    Member
    Posted 1 year ago #

    Actually, i found out that my problem is because im calling this: <?php get_sidebar(); ?>

    Does anybody know why this error happens when i try to get the sidebar in my template?

Topic Closed

This topic has been closed to new replies.

About this Topic