Удалить ссылки из футера темы WP

(Ответов: 2, Просмотров: 10789)
  1. Где бабло? Аватар для Cyberflow
    • Регистрация: 14.12.2010
    • Сообщений: 502
    • Репутация: 191
    • Webmoney BL: ?
    Ребят, нужна помощь. При попытке удалить ссылки из футера появляется вот такая надпись, вместо моего СДЛ (честно, это очередной СДЛ xD):
    "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."
    Использование метода Как удалить закодированные ссылки в подвале на шаблонах WordPress не дало результа.

    Сам футер
    PHP код:
           <div class="span-24">
            <div id="footer">Copyright &copy; <a href="<?php bloginfo('home'); ?>"><strong><?php bloginfo('name'); ?></strong></a>  - <?php bloginfo('description'); ?></div>
            <?php /* 
                        All links in the footer should remain intact. 
                        These links are all family friendly and will not hurt your site in any way. 
                        Warning! Your site may stop working if these links are edited or deleted 
                        
                        You can buy this theme without footer links online at http://newwpthemes.com/buy/?theme=freshlook 
                    */ 
    ?>
            <div id="credits">Powered by <a href="http://wordpress.org/"><strong>WordPress</strong></a> | Designed by: <a href="http://suv.reviewitonline.net/">Best SUV</a> | Thanks to <a href="http://suv.reviewitonline.net/toyota-suv/">Toyota SUV</a>, <a href="http://suv.reviewitonline.net/ford-suv/">Ford SUV</a> and <a href="http://trucks.reviewitonline.net">Best Truck</a></div>
            </div>
        </div>
        </div>
    </div>
    <?php
         wp_footer
    ();
        echo 
    get_theme_option("footer")  . "\n";
    ?>
    </body>
    </html>
    Исходный код футера
    PHP код:
    <div class="span-24">
            <
    div id="footer">Copyright &copy; <a href="http://www.strojka.ru"><strong>строительство и ремонт</strong></a>  - Ещё один сайт на WordPress</div>
                    <
    div id="credits">Powered by <a href="http://wordpress.org/"><strong>WordPress</strong></a> | Designed by: <a href="http://suv.reviewitonline.net/">Best SUV</a> | Thanks to <a href="http://suv.reviewitonline.net/toyota-suv/">Toyota SUV</a>, <a href="http://suv.reviewitonline.net/ford-suv/">Ford SUV</a> and <a href="http://trucks.reviewitonline.net">Best Truck</a></div>

            </
    div>
        </
    div>
        </
    div>
    </
    div>
    <
    script type='text/javascript' src='http://www.strojka.ru/wp-includes/js/admin-bar.js?ver=20111130'></script>
            <div id="wpadminbar" class="nojq nojs" role="navigation">
                <div class="quicklinks">
                    <ul id="wp-admin-bar-root-default" class="ab-top-menu">
            <li id="wp-admin-bar-wp-logo" class="menupop"><a class="ab-item" tabindex="10" aria-haspopup="true" href="http://www.strojka.ru/wp-admin/about.php" title="О WordPress"><span class="ab-icon"></span></a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-wp-logo-default" class="ab-submenu">

            <li id="wp-admin-bar-about" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/about.php">О WordPress</a>        </li></ul><ul id="wp-admin-bar-wp-logo-external" class="ab-sub-secondary ab-submenu">
            <li id="wp-admin-bar-wporg" class=""><a class="ab-item" tabindex="10" href="http://ru.wordpress.org">WordPress.org</a>        </li>
            <li id="wp-admin-bar-documentation" class=""><a class="ab-item" tabindex="10" href="http://codex.wordpress.org/Заглавная_страница">Документация</a>        </li>
            <li id="wp-admin-bar-support-forums" class=""><a class="ab-item" tabindex="10" href="http://ru.forums.wordpress.org/">Форумы поддержки</a>        </li>
            <li id="wp-admin-bar-feedback" class=""><a class="ab-item" tabindex="10" href="http://ru.forums.wordpress.org/forum/20">Обратная связь</a>        </li></ul></div>        </li>

            <li id="wp-admin-bar-site-name" class="menupop"><a class="ab-item" tabindex="10" aria-haspopup="true" href="http://www.strojka.ru/wp-admin/">строительство и ремонт</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-site-name-default" class="ab-submenu">
            <li id="wp-admin-bar-dashboard" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/">Консоль</a>        </li></ul><ul id="wp-admin-bar-appearance" class=" ab-submenu">
            <li id="wp-admin-bar-themes" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/themes.php">Темы</a>        </li>
            <li id="wp-admin-bar-widgets" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/widgets.php">Виджеты</a>        </li>
            <li id="wp-admin-bar-menus" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/nav-menus.php">Меню</a>        </li>

            <li id="wp-admin-bar-background" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/themes.php?page=custom-background">Фон</a>        </li></ul></div>        </li>
            <li id="wp-admin-bar-updates" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/update-core.php" title="3 обновления плагинов, 1 обновление темы"><span class="ab-icon"></span><span class="ab-label">4</span></a>        </li>
            <li id="wp-admin-bar-comments" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/edit-comments.php" title="0 комментариев ожидают проверки"><span class="ab-icon"></span><span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-0">0</span></a>        </li>
            <li id="wp-admin-bar-new-content" class="menupop"><a class="ab-item" tabindex="10" aria-haspopup="true" href="http://www.strojka.ru/wp-admin/post-new.php" title="Добавить"><span class="ab-icon"></span><span class="ab-label">Добавить</span></a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-new-content-default" class="ab-submenu">
            <li id="wp-admin-bar-new-post" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/post-new.php">Запись</a>        </li>

            <li id="wp-admin-bar-new-media" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/media-new.php">Медиафайл</a>        </li>
            <li id="wp-admin-bar-new-link" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/link-add.php">Ссылку</a>        </li>
            <li id="wp-admin-bar-new-page" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/post-new.php?post_type=page">Страницу</a>        </li>
            <li id="wp-admin-bar-new-user" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/user-new.php">Пользователя</a>        </li></ul></div>        </li></ul><ul id="wp-admin-bar-top-secondary" class="ab-top-secondary ab-top-menu">

            <li id="wp-admin-bar-search" class=" admin-bar-search"><div class="ab-item ab-empty-item" tabindex="-1"><form action="http://www.strojka.ru/" method="get" id="adminbarsearch"><input class="adminbar-input" name="s" id="adminbar-search" tabindex="10" type="text" value="" maxlength="150" /><input type="submit" class="adminbar-button" value="Поиск"/></form></div>        </li>
            <li id="wp-admin-bar-my-account" class="menupop with-avatar"><a class="ab-item" tabindex="10" aria-haspopup="true" href="http://www.strojka.ru/wp-admin/profile.php" title="Моя учётная запись">Привет, admin<img alt='' src='http://0.gravatar.com/avatar/88d8606e610295b72ec0ec8a9179209a?s=16&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D16&amp;r=G' class='avatar avatar-16 photo' height='16' width='16' /></a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-user-actions" class=" ab-submenu">
            <li id="wp-admin-bar-user-info" class=""><a class="ab-item" tabindex="-1" href="http://www.strojka.ru/wp-admin/profile.php"><img alt='' src='http://0.gravatar.com/avatar/88d8606e610295b72ec0ec8a9179209a?s=64&amp;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D64&amp;r=G' class='avatar avatar-64 photo' height='64' width='64' /><span class='display-name'>admin</span></a>        </li>
            <li id="wp-admin-bar-edit-profile" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-admin/profile.php">Изменить профиль</a>        </li>
            <li id="wp-admin-bar-logout" class=""><a class="ab-item" tabindex="10" href="http://www.strojka.ru/wp-login.php?action=logout&_wpnonce=8a3abb0d6c">Выйти</a>        </li></ul></div>        </li></ul>            </div>

            </div>

            
    </body>
    </html> 
    Ссыль на шаблон: _http://newwpthemes.com/demo/FreshLook/

    Администрация, прошу прощения за создание клонов топика. При попытки создания вылезала ошибка и я не думал, что топик создался. Еще раз прошу прощения. В будущем, буду повнимательнее
    Последний раз редактировалось Cyberflow; 22.02.2012 в 03:02.
    • 0
  2. Гуру Аватар для Rememrbance
    • Регистрация: 27.08.2011
    • Сообщений: 681
    • Репутация: 164
    Попробуйте удалить в футере ссылки, затем в файле function.php найти строку

    PHP код:
    function wp_initialize_the_theme_finish() { $uri strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri"wp-admin") > || substr_count($uri"wp-login") > ) { /* */ } else { $l 'Designed by: <a href="http://suv.reviewitonline.net/">Best SUV</a> | Thanks to <a href="http://suv.reviewitonline.net/toyota-suv/">Toyota SUV</a>, <a href="http://suv.reviewitonline.net/ford-suv/">Ford SUV</a> and <a href="http://trucks.reviewitonline.net">Best Truck</a>'$f dirname(__file__) . "/footer.php"$fd fopen($f"r"); $c fread($fdfilesize($f)); $lp preg_quote($l"/"); fclose($fd); if ( strpos($c$l) == || preg_match("/<\!--(.*" $lp ".*)-->/si"$c) || preg_match("/<\?php([^\?]+[^>]+" $lp ".*)\?>/si"$c) ) { wp_initialize_the_theme_message(); die; } } } wp_initialize_the_theme_finish(); 
    заменить ее на

    PHP код:
    function wp_initialize_the_theme_finish() { $uri strtolower($_SERVER["REQUEST_URI"]); if(is_admin() || substr_count($uri"wp-admin") > || substr_count($uri"wp-login") > ) { /* */ } else { $l 'Designed by: <a href="http://suv.reviewitonline.net/">Best SUV</a> | Thanks to <a href="http://suv.reviewitonline.net/toyota-suv/">Toyota SUV</a>, <a href="http://suv.reviewitonline.net/ford-suv/">Ford SUV</a> and <a href="http://trucks.reviewitonline.net">Best Truck</a>'$f dirname(__file__) . "/footer.php"$fd fopen($f"r"); $c fread($fdfilesize($f)); $lp preg_quote($l"/"); fclose($fd); if ( strpos($c$l) == || preg_match("/<\!--(.*" $lp ".*)-->/si"$c) || preg_match("/<\?php([^\?]+[^>]+" $lp ".*)\?>/si"$c) ) {/* wp_initialize_the_theme_message(); die; */} } } wp_initialize_the_theme_finish(); 
    • 2

    Спасибо сказали:

    Cyberflow(22.02.2012), InFakes(06.03.2013),
  3. Где бабло? Аватар для Cyberflow
    • Регистрация: 14.12.2010
    • Сообщений: 502
    • Репутация: 191
    • Webmoney BL: ?
    Rememrbance, Спасибо, помогло.
    • 0

Похожие темы

Темы Раздел Ответов Последний пост
Как удалить все внешние ссылки с контента Wordpress?
WordPress 14 24.10.2019 17:52
Как удалить кеш из гугла?
Google 7 10.01.2012 15:46
Как удалить закодированные ссылки в подвале на шаблонах WordPress (видео)
Дайджест блогосферы 0 21.01.2011 13:53

У кого попросить инвайт?

Вы можете попросить инвайт у любого модератора:

Информеры