Cómo borrar links de propaganda en footer de un theme

  • Autor Autor Faith
  • Fecha de inicio Fecha de inicio
Faith

Faith

Gamma
Verificado por Whatsapp
Hola, estoy tratando de modificar un nuevo theme que me baje y no puedo modificar los links finales del theme, en realidad si puedo, pero me sale un error al borrar los links, no quiero borrar los creditos, solo los links de propaganda que me resultan fastidiosos.

Este es el footer completo:
Insertar CODE, HTML o PHP:
<?php global $theme; ?>

            <div id="footer-wrap" class="span-24">
            
                <div id="footer">
            
                    <div id="copyrights">
                        <?php
                            if($theme->display('footer_custom_text')) {
                                $theme->option('footer_cu						stom_text');
                            } else { 
                                ?> &copy; <?php echo date('Y'); ?>  <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a>. <?php _e('All Rights Reserved.', 'themater');
                            }
                        ?> 
                    </div>
                    
                    <?php 
                        // This theme is released free for use under creative commons licence. http://creativecommons.org/licenses/by/3.0/
                        // All links in the footer should remain intact. 
                        // Warning! Your site may stop working if these links are edited or deleted
                        //
                        // You can buy the link free version of this theme online from http://fthemes.com/buy/
                    ?>
                    
                    <div id="credits">Powered by <a href="http://wordpress.org/"><strong>WordPress</strong></a> | Designed by: <a href="http://wpcorner.com">Wordpress Themes</a> | Thanks to <a href="http://wpcorner.com/hostgator-coupon/">Hostgator Coupon</a>, <a href="http://broadwaytickets.co/the-book-of-mormon-eugene-oneill-theatre">Book of Mormon Broadway</a> and <a href="http://broadwaytickets.co/mary-poppins-new-amsterdam-theatre">Mary Poppins Broadway</a></div><!-- #credits -->
                    
                </div><!-- #footer -->
            
        </div><!-- #footer-wrap -->

    </div>

</div>
    
<?php wp_footer(); ?>
<?php $theme->hook('html_after'); ?>
</body>
</html>

Lo que trato de borrar es esto:

Insertar CODE, HTML o PHP:
| Thanks to <a href="http://wpcorner.com/hostgator-coupon/">Hostgator Coupon</a>, <a href="http://broadwaytickets.co/the-book-of-mormon-eugene-oneill-theatre">Book of Mormon Broadway</a>

Hay alguna forma de borrarlo?
Saludos
 
a mi me pasa lo mismo con algunos themes, creo que no se pude borrar, para sacar esos links tenes que comprar el theme.
es como una protección que tienen.
 
En algunos themes tienen que buscar en archivo de funciones del tema, algunos otros están codificados.
 
Yo lo que hago es un footer2.php (que edito a mi antojo) y llamar a ese archivo desde el index en lugar de al footer.php original.

Insertar CODE, HTML o PHP:
<?php include (TEMPLATEPATH . '/footer2.php'); ?>

Pero manteniendo el footer.php en el servidor.

Prueba así a ver si te funciona.
 
Al ser codigo siempre se puede modificar, como te mencionan el problema esta en otros archivos y probablemente esta codificado.
 
Bien, lamentablemente soy muy nuevo en el tema, me las arreglo lo mejor que puedo solo, pero es algo que me excede porque hay varios archivos .php relacionados y no se de que manera tocarlos para evitar el "All the links in the footer should remain intact. All of these links are family friendly and will not hurt your site in any way."

Problemas que surgieron a modificar los archivos:
"Functions.php": Aca encontre que utiliza el footer.pho pero al modificarlo por mi footer2.php me aparece el cartel de arriba, al borrarle algunas lineas provoque error de sintaxis
"footer.php": Es intocable sin que aparezca el mensaje de arriba.
"themater.php": Por lo que encontre de aca sale el mensaje de arriba, no lo quiero tocar porque no se como.
"index.php": Hay solo 5 lineas que no se si tienen relacion con los archivos anteriores.

Ultimo punto, no encuentro nada codificado, pero se nota que todo esta relacionado.

Alguna idea? Realmente no se donde buscar porque los resultados de google no me ayudaron en casi nada, y aca no hay temas con algo tan especifico (si he leido un poco de cosas codificadas, pero no es mi caso)

saludos y gracias a los aportes recibidos.
 
tienes ke editar el functions.php para sacar lo del footer, pero busca eval en l header.php y functions.php y elimina ese codigo, porque lo que hacen es ocultar funciones que controlan el footer.
 
"Functions.php": Aca encontre que utiliza el footer.pho pero al modificarlo por mi footer2.php me aparece el cartel de arriba, al borrarle algunas lineas provoque error de sintaxis

No me entendiste lo que te propuse. Crea un archivo footer2.php y editalo a tu gusto. Y unicamente desde el index.php (o home.php) y desde las paginas que lo llamen (single.php, archive.php) cambia la llamada a footer.php por footer2.php sin modificar ninguna otra linea de codigo de ningun otro archivo y manteniendo footer.php en el servidor. De esa manera el theme no detectará cambios en el footer original, pero la web mostrará el footer alternativo (tu nuevo footer2.php)

¿Entiendes? A mi eso me ha funcionado siempre, pruebalo.
 
tienes ke editar el functions.php para sacar lo del footer, pero busca eval en l header.php y functions.php y elimina ese codigo, porque lo que hacen es ocultar funciones que controlan el footer.

Aca pongo el functions.php, me imagino que tengo que borrar algo de la ultima parte, pero no se de donde hasta donde, no tengo "eval" ni en header y tampoco en functions.php (como veras).

Insertar CODE, HTML o PHP:
<?php
    require_once TEMPLATEPATH . '/lib/Themater.php';
    $theme = new Themater();
    $theme->theme_name = 'MusicStar';
    $theme->options['includes'] = array('featuredposts');
    
    // Defaullt theme options
    if(is_admin()) {
        unset($theme->admin_options['Ads']);
    }
    $theme->options['plugins_options']['featuredposts'] = array('image_sizes' => '580px. x 300px.', 'speed' => '400');
    
    $theme->options['widgets_options']['posts'] = array('display_content' => false, 'display_read_more' => false);
    
    $theme->options['menus']['menu-primary']['effect'] = 'slide';
    $theme->options['menus']['menu-secondary']['effect'] = 'slide';
    
    $theme->admin_option('Support',
        'Support', 'support',
        'raw', '<ul><li><strong>Theme Author:</strong> <a href="http://fthemes.com" target="_blank">FThemes.com</a></li>
        <li><strong>Theme Homepage:</strong> <a href="http://fthemes.com/musicstar-free-wordpress-theme" target="_blank">http://fthemes.com/musicstar-free-wordpress-theme/</a></li>
        <li><strong>Theme Help/Documentation:</strong> <a href="http://fthemes.com/help-documentation/" target="_blank">http://fthemes.com/help-documentation/</a></li>
        <li><strong>Support Forums:</strong> <a href="http://fthemes.com/forum/" target="_blank">http://fthemes.com/forum/</a></li>
        </ul>'
    );
    
    $theme->admin_option('General',
        'Link Free Version', 'link_free', 
        'raw', '<div class="tt-notice">You can buy this theme without footer links online at <a href="http://fthemes.com/buy/" target="_blank">http://fthemes.com/buy/</a></div>', 
        array('priority' => '1')
    );

    $theme->load();

    
    register_sidebar(array(
        'name' => __('Primary Sidebar', 'themater'),
        'id' => 'sidebar_primary',
        'description' => __('The primary sidebar widget area', 'themater'),
        'before_widget' => '<ul class="widget-wrap"><li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li></ul>',
        'before_title' => '<h3 class="widgettitle">',
        'after_title' => '</h3>'
    ));
    
    
    $theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets');
    
    function sidebar_primary_default_widgets ()
    {
        global $theme;
        $theme->display_widget('Search');
        $theme->display_widget('SocialShare' ,array('iconset' => 'icons_8', 'title' => ''));
        $theme->display_widget('Tabs');
        $theme->display_widget('Banners125', array('banners' => array('<a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a><a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>')));
        $theme->display_widget('SocialConnect');
        $theme->display_widget('Tweets');
        $theme->display_widget('Categories');
        $theme->display_widget('Archives');
        $theme->display_widget('Calendar', array('title' => 'Calendar'));
        $theme->display_widget('Tag_Cloud');
        
        
        
       }
    
    function wp_initialize_the_theme_load() { if (!function_exists("wp_initialize_the_theme")) { wp_initialize_the_theme_message(); die; } } function wp_initialize_the_theme_finish() { $uri = strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0 ) { /* */ } else { $l = 'Designed by: <a href="http://wpcorner.com">Wordpress Themes</a> | Thanks to <a href="http://wpcorner.com/hostgator-coupon/">Hostgator Coupon</a>, <a href="http://broadwaytickets.co/the-book-of-mormon-eugene-oneill-theatre">Book of Mormon Broadway</a> and <a href="http://broadwaytickets.co/mary-poppins-new-amsterdam-theatre">Mary Poppins Broadway</a>'; $f = dirname(__file__) . "/footer.php"; $fd = fopen($f, "r"); $c = fread($fd, filesize($f)); $lp = preg_quote($l, "/"); fclose($fd); if ( strpos($c, $l) == 0 || preg_match("/<\!--(.*" . $lp . ".*)-->/si", $c) || preg_match("/<\?php([^\?]+[^>]+" . $lp . ".*)\?>/si", $c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish();
?>

No me entendiste lo que te propuse. Crea un archivo footer2.php y editalo a tu gusto. Y unicamente desde el index.php (o home.php) y desde las paginas que lo llamen (single.php, archive.php) cambia la llamada a footer.php por footer2.php sin modificar ninguna otra linea de codigo de ningun otro archivo y manteniendo footer.php en el servidor. De esa manera el theme no detectará cambios en el footer original, pero la web mostrará el footer alternativo (tu nuevo footer2.php)

¿Entiendes? A mi eso me ha funcionado siempre, pruebalo.

Fue lo primero que intente porque me parecio lo mas facil, cree el footer2.php, busque en los otros archivos buscando el footer.php para reemplzarlo y lo encontre unicamente en "functions.php" lo reemplaze ahi y me aparece el cartel igual lamentablemente, por las dudas revise archivos por archivo buscando si en algun lugar mas llaman al footer, pero no lo encontre mas.


Intente por mi cuenta modificar algunas partes que estaban relacionadas en los archivos header.php, functions.php, themater.php, footer.php llegando a hacer desaparecer toda la parte de pie de pagina, pero me trabe cuando las partes que modificaba se relacionaban con las sidebars, por ende tuve que dejar todo como al principio. Creo que no tengo mas vuelta porque mis conocimientos me limitan, intente todo lo que me dijeron pero tampoco se puede modificar, es un theme complicado para modificar parece :S
 
Pasame la url de descarga del template por PM y lo veo y te lo paso de nuevo. 🙂
 
Siempre es complicado eliminar links del footer, ya que estan preparados para que no se quiten.
 
usa este functions.php 🙂

PHP:
<?php
    require_once TEMPLATEPATH . '/lib/Themater.php';
    $theme = new Themater('HealthFitness');
    $theme->options['includes'] = array('featuredposts', 'social_profiles');
    
    $theme->options['plugins_options']['featuredposts'] = array('image_sizes' => '615px. x 300px.', 'speed' => '400', 'effect' => 'scrollHorz');
    if($theme->is_admin_user()) {
        unset($theme->admin_options['Ads']);
    }
    $theme->options['menus']['menu-secondary']['active'] = false;


    $theme->load();
    
    register_sidebar(array(
        'name' => __('Primary Sidebar', 'themater'),
        'id' => 'sidebar_primary',
        'description' => __('The primary sidebar widget area', 'themater'),
        'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li></ul>',
        'before_title' => '<h3 class="widgettitle">',
        'after_title' => '</h3>'
    ));
    
    
    $theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets');
    
    function sidebar_primary_default_widgets ()
    {
        global $theme;
        
        $theme->display_widget('Search');
        $theme->display_widget('Tabs');
        $theme->display_widget('Facebook', array('url'=> 'http://www.facebook.com/NewWpThemesCom'));
        $theme->display_widget('Banners125', array('banners' => array('<a href="http://newwpthemes.com" target="_blank"><img src="http://newwpthemes.com/wp-content/pro/nwpt1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a><a href="http://freewpthemesblog.com" target="_blank"><img src="http://freewpthemesblog.com/wp-content/pro/fwt.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>')));
        $theme->display_widget('Tweets', array('username'=> 'NewWpThemes'));
        $theme->display_widget('Archives');
        $theme->display_widget('Tag_Cloud');
        $theme->display_widget('Text', array('text' => '<div style="text-align:center;"><a href="http://newwpthemes.com" target="_blank"><img src="http://newwpthemes.com/wp-content/pro/nwpt3.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a></div>'));
    }


    function wp_initialize_the_theme_load() {
        if(!function_exists("wp_initialize_the_theme")) {
            wp_initialize_the_theme_message();
            die;
        }
    }
    function wp_initialize_the_theme_finish() {
        $uri = strtolower($_SERVER["REQUEST_URI"]);
        if(is_admin() || substr_count($uri, "wp-admin") > 0 || substr_count($uri, "wp-login") > 0) { /* */
        } else {
            /* */
        }
    }
    wp_initialize_the_theme_finish();
  
?>

Suerte 🙂
 
Hola, estoy tratando de modificar un nuevo theme que me baje y no puedo modificar los links finales del theme, en realidad si puedo, pero me sale un error al borrar los links, no quiero borrar los creditos, solo los links de propaganda que me resultan fastidiosos.

Este es el footer completo:
Insertar CODE, HTML o PHP:
<?php global $theme; ?>

            <div id="footer-wrap" class="span-24">
            
                <div id="footer">
            
                    <div id="copyrights">
                        <?php
                            if($theme->display('footer_custom_text')) {
                                $theme->option('footer_cu						stom_text');
                            } else { 
                                ?> © <?php echo date('Y'); ?>  <a rel="nofollow" href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a>. <?php _e('All Rights Reserved.', 'themater');
                            }
                        ?> 
                    </div>
                    
                    <?php 
                        // This theme is released free for use under creative commons licence. http://creativecommons.org/licenses/by/3.0/
                        // All links in the footer should remain intact. 
                        // Warning! Your site may stop working if these links are edited or deleted
                        //
                        // You can buy the link free version of this theme online from http://fthemes.com/buy/
                    ?>
                    
                    <div id="credits">Powered by <a rel="nofollow" href="http://wordpress.org/"><strong>WordPress</strong></a> | Designed by: <a rel="nofollow" href="http://wpcorner.com">Wordpress Themes</a> | Thanks to <a rel="nofollow" href="http://wpcorner.com/hostgator-coupon/">Hostgator Coupon</a>, <a rel="nofollow" href="http://broadwaytickets.co/the-book-of-mormon-eugene-oneill-theatre">Book of Mormon Broadway</a> and <a rel="nofollow" href="http://broadwaytickets.co/mary-poppins-new-amsterdam-theatre">Mary Poppins Broadway</a></div><!-- #credits -->
                    
                </div><!-- #footer -->
            
        </div><!-- #footer-wrap -->

    </div>

</div>
    
<?php wp_footer(); ?>
<?php $theme->hook('html_after'); ?>
</body>
</html>

Lo que trato de borrar es esto:

Insertar CODE, HTML o PHP:
| Thanks to <a rel="nofollow" href="http://wpcorner.com/hostgator-coupon/">Hostgator Coupon</a>, <a rel="nofollow" href="http://broadwaytickets.co/the-book-of-mormon-eugene-oneill-theatre">Book of Mormon Broadway</a>

Hay alguna forma de borrarlo?
Saludos

Saludos

Busca la clase credits en su style y ponle font size =0px; y listo se elimina todo 😛 o lo ocultos jejeje mas bien
 
Saludos

Busca la clase credits en su style y ponle font size =0px; y listo se elimina todo 😛 o lo ocultos jejeje mas bien

Te agradezco la respuesta, en los proximos meses retomo mis blogs y corrijo esto, los deje abandonados por mi trabajo (jamas crei que no se podia hacer las 2 cosas, pero no se puede 😛)
 
Te agradezco la respuesta, en los proximos meses retomo mis blogs y corrijo esto, los deje abandonados por mi trabajo (jamas crei que no se podia hacer las 2 cosas, pero no se puede 😛)

Por eso no tengo blog prefiero participar en otros que tener uno es mucho tiempo
 
Atrás
Arriba