Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/05/2010, 12:35
Avatar de abimaelrc
abimaelrc
Colaborador
 
Fecha de Ingreso: mayo-2009
Ubicación: En el planeta de Puerto Rico
Mensajes: 14.734
Antigüedad: 15 años
Puntos: 1517
Respuesta: renombrar style.css a style.php

voy a tener que cobrar por consulta
Esta es la forma.
1. Cambia el archivo a style.php
2. Añade en la primera línea, al principio, al comienzo, en la parte de arriba, donde comienza el archivo (sigo... bueno, creo que entendiste la idea) style.php esta línea
Código PHP:
Ver original
  1. <?php header('Content-type: text/css;'); ?>
3. Ve al archivo wp-includes/theme.php y mofica esta línea
Código PHP:
Ver original
  1. function get_stylesheet_uri() {
  2.     $stylesheet_dir_uri = get_stylesheet_directory_uri();
  3.     $stylesheet_uri = $stylesheet_dir_uri . "/style.css";
  4.     return apply_filters('stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri);
  5. }
a esta forma
Código PHP:
Ver original
  1. function get_stylesheet_uri() {
  2.     $stylesheet_dir_uri = get_stylesheet_directory_uri();
  3.     $stylesheet_uri = $stylesheet_dir_uri . "/style.php";
  4.     return apply_filters('stylesheet_uri', $stylesheet_uri, $stylesheet_dir_uri);
  5. }
Versión donde probé esto 2.9.2
__________________
Verifica antes de preguntar.
Los verdaderos amigos se hieren con la verdad, para no perderlos con la mentira. - Eugenio Maria de Hostos