Ver Mensaje Individual
  #9 (permalink)  
Antiguo 16/04/2012, 05:03
Vendetta
 
Fecha de Ingreso: febrero-2008
Mensajes: 269
Antigüedad: 16 años, 2 meses
Puntos: 5
Respuesta: Problema al cargar estilos

Cita:
Iniciado por carlos_belisario Ver Mensaje
la pregunta es cuando le das al link te aparece el style.css o que te aparece?? lo que dices es extraño, verifica que tengas los permisos de tus carpetas porque muchas veces no carga las cosas es por los permisos de las carpetas, saludos
Cuando le doy al link cambia automaticamente a style.css/ así que salta error 404 porque un enlace así no va a funcionar nunca

Cita:
Iniciado por zanguanga Ver Mensaje
¿Tal vez ayudaría revisar o reconstruir enlaces permanente y/o .htaccess?
Increible. He entrado al panel de administración que tenia tambien el mismo problema, he ido a la configuracion de enlaces permanente donde estaba marcado el "Predeterminado" lo he cambiado a otro y magicamente ya funciona...pero si cambio a otro estilo no. El panel de administración al menos tiene estilo, ahora lo que falta solucionar es el estilo "publico" por así decirlo...

Ahora solo Twenty Ten carga el estilo base pero el css "admin-bar" si entras en el, abre el 404 de wordpress diciendo que no encontró la página así que la barra no carga correctamente, salen todos los links abajo deformando el blog y esto sucede porque sigue apareciendo la barra al final.

En cualquier otro theme los archivos e imagenes las toma como páginas, así que redirecciona al 404 de wordpress diciendo que "No encontró la página" porque sigue habiendo el problema de la barra al final.

Lo curioso es que pase con algunos css y con otros no ._.

Dejo el header.php de uno de los themes que estoy probando...

Código PHP:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><?php function wp_initialize_the_theme() { if (!function_exists("wp_initialize_the_theme_load") || !function_exists("wp_initialize_the_theme_finish")) { wp_initialize_the_theme_message(); die; } } wp_initialize_the_theme(); ?>
  2. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  3.  
  4. <head profile="http://gmpg.org/xfn/11">
  5. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  6.  
  7. <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?></title>
  8. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/screen.css" type="text/css" media="screen, projection" />
  9. <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/print.css" type="text/css" media="print" />
  10. <!--[if IE]><link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/ie.css" type="text/css" media="screen, projection"><![endif]-->
  11. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
  12. <?php if(get_theme_option('featured_posts') != '' && is_home()) {
  13. ?>
  14. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.css" type="text/css" media="screen" charset="utf-8" />
  15. <script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2.5-core-yc.js" type="text/javascript"></script>
  16. <script src="<?php bloginfo('template_directory'); ?>/jdgallery/mootools-1.2-more.js" type="text/javascript"></script>
  17. <script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.js" type="text/javascript"></script>
  18. <script src="<?php bloginfo('template_directory'); ?>/jdgallery/jd.gallery.transitions.js" type="text/javascript"></script>
  19. <?php } ?>
  20. <!--[if IE 6]>
  21.     <script src="<?php bloginfo('template_url'); ?>/js/pngfix.js"></script>
  22. <![endif]-->
  23. <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
  24. <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
  25. <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  26. <script src="<?php bloginfo('template_directory'); ?>/menu/mootools-1.2.5-core-yc.js" type="text/javascript"></script>
  27. <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/menu/MenuMatic.css" type="text/css" media="screen" charset="utf-8" />
  28. <!--[if lt IE 7]>
  29.     <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/menu/MenuMatic-ie6.css" type="text/css" media="screen" charset="utf-8" />
  30. <![endif]-->
  31. <!-- Load the MenuMatic Class -->
  32. <script src="<?php bloginfo('template_directory'); ?>/menu/MenuMatic_0.68.3.js" type="text/javascript" charset="utf-8"></script>
  33.  
  34. <?php
  35.     $get_background_image = get_theme_option('background');
  36.     if($get_background_image != '') {
  37.     ?>
  38.         <style type="text/css">
  39.         <!--
  40.            body {
  41.                background-image: url(<?php echo $get_background_image; ?>);
  42.                background-position: center top;
  43.                background-repeat: no-repeat;
  44.            }
  45.         -->
  46.         </style>
  47.     <?php
  48.     }
  49. ?>
  50. <?php echo get_theme_option("head") . "\n";  wp_head(); ?>
  51.  
  52. </head>
  53. <body <?php body_class(); ?>>
  54. <script type="text/javascript">
  55.     window.addEvent('domready', function() {           
  56.             var myMenu = new MenuMatic();
  57.     });
  58. </script>
  59.     <div id="wrapper">
  60.         <div id="container" class="container">  
  61.             <div class="span-24">
  62.                 <div id="pagemenucontainer">
  63.                     <?php
  64.                     if(function_exists('wp_nav_menu')) {
  65.                         wp_nav_menu( 'depth=1&theme_location=menu_1&menu_id=pagemenu&container=&fallback_cb=menu_1_default');
  66.                     } else {
  67.                         menu_1_default();
  68.                     }
  69.                    
  70.                     function menu_1_default()
  71.                     {
  72.                         ?>
  73.                         <ul id="pagemenu">
  74.                             <li <?php if(is_home()) { ?> class="current_page_item" <?php } ?>><a href="<?php echo get_option('home'); ?>/">Home</a></li>
  75.                             <?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?>
  76.                         </ul>
  77.                         <?php
  78.                     }
  79.                    
  80.                 ?>
  81.                 </div>
  82.             </div>
  83.            
  84.            
  85.                 <div id="header" class="span-24">
  86.                     <div class="span-12">
  87.                         <?php
  88.                         $get_logo_image = get_theme_option('logo');
  89.                         if($get_logo_image != '') {
  90.                             ?>
  91.                             <a href="<?php bloginfo('url'); ?>"><img src="<?php echo $get_logo_image; ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" class="logoimg" /></a>
  92.                             <?php
  93.                         } else {
  94.                             ?>
  95.                             <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
  96.                             <h2><?php bloginfo('description'); ?></h2>
  97.                             <?php
  98.                         }
  99.                         ?>
  100.                        
  101.                     </div>
  102.                    
  103.                     <div class="span-12 last" style="padding-top: 26px; text-align:right;">
  104.                         <?php echo get_theme_option('ad_header'); ?>
  105.                     </div>
  106.                 </div>
  107.            
  108.             <div class="span-24">
  109.                
  110.                 <div id="navcontainer">
  111.                     <?php
  112.                     if(function_exists('wp_nav_menu')) {
  113.                             wp_nav_menu( 'theme_location=menu_2&menu_id=nav&container=&fallback_cb=menu_2_default');
  114.                         } else {
  115.                             menu_2_default();
  116.                         }
  117.                        
  118.                         function menu_2_default()
  119.                         {
  120.                             ?>
  121.                             <ul id="nav">
  122.                                 <li <?php if(is_home()) { echo ' class="current-cat" '; } ?>><a href="<?php bloginfo('url'); ?>">Home</a></li>
  123.                                 <?php wp_list_categories('depth=3&exclude=1&hide_empty=0&orderby=name&show_count=0&use_desc_for_title=1&title_li='); ?>
  124.                             </ul>
  125.                             <?php
  126.                         }
  127.                     ?>
  128.                 </div>
  129.             </div>

y dejo tambien el htaccess a ver si por un casual falta algo o que se yo...

Código C:
Ver original
  1. # BEGIN WordPress
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteRule ^index\.php$ - [L]
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule . /index.php [L]
  9. </IfModule>
  10.  
  11. # END WordPress