Помогите удалить ссылки из футера

P0
На сайте с 05.06.2015
Offline
50
818

Вот сам footer.php

?>

</div><!-- #content -->

<footer id="colophon" class="site-footer" role="contentinfo">
<div class="container footer-content">
<div class="row">
<!-- Footer widget 1 begin -->
<div class="col-md-4">
<?php dynamic_sidebar('footer-widget-1'); ?>
</div>
<!-- Footer widget 1 end -->

<!-- Footer widget 2 begin -->
<div class="col-md-4">
<?php dynamic_sidebar('footer-widget-2'); ?>
</div>
<!-- Footer widget 2 end -->

<!-- Footer widget 3 begin -->
<div class="col-md-4">
<?php dynamic_sidebar('footer-widget-3'); ?>
</div>
<!-- Footer widget 3 end -->
</div>
</div>

<!-- Copyrights -->
<div class="copyright">
<div class="container">
<div class="row">
<p><?php if ( ta_option('custom_copyright') != '') : ?><?php echo ta_option('custom_copyright'); ?><?php endif; ?></p>
<!-- Footer menu -->
<?php if ( has_nav_menu( 'secondary' ) ) { ?>
<div class="footer-menu">
<?php
wp_nav_menu( array(
'theme_location' => 'secondary',
'container' => false,
)
);
?>
</div>
<?php } ?>
</div>
</div>
</div>
</footer><!-- #colophon -->
</div><!-- #page -->

<?php wp_footer(); ?>

</body>
</html>

А вот functions.php

<?php

load_theme_textdomain( 'ta-magazine', get_template_directory() . '/languages' );


if ( !class_exists( 'ReduxFramework' ) ) {
require_once( get_template_directory() . '/redux/framework.php' );
}

require_once( get_template_directory() . '/inc/redux-config.php' );


require_once( get_template_directory() . '/inc/ta-option.php' );


if ( !isset($content_width) ) {
$content_width = 555; /* pixels */
}


function full_width_page() {
if ( is_page_template('template-full-width-page.php') ) {
global $content_width;
$content_width = 1140; /* pixels */
}
}
add_action('template_redirect', 'full_width_page');

if ( ! function_exists( 'ta_magazine_setup' ) ) :

function ta_magazine_setup() {

// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );


add_theme_support( 'title-tag' );


add_theme_support( 'post-thumbnails' );
add_image_size( 'slider-lg', 750, 360, true );
add_image_size( 'slider-sm', 165, 165, true );
add_image_size( 'slide-show', 360, 265, true );
add_image_size( 'feature-lg', 360, 165, true );
add_image_size( 'feature-md', 270, 250, true );
add_image_size( 'feature-sm', 90, 90, true );
add_image_size( 'gallery-lg', 945, 530, true );
add_image_size( 'gallery-sm', 180, 110, true );
add_image_size( 'related', 270, 170, true );

// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'ta-magazine' ),
'secondary' => __( 'Secondary Menu', 'ta-magazine' ),
) );


add_theme_support( 'html5', array(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',
) );


add_theme_support( 'post-formats', array(
'gallery', 'audio', 'video',
) );

// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'ta_magazine_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
}
endif; // ta_magazine_setup
add_action( 'after_setup_theme', 'ta_magazine_setup' );

function ta_magazine_widgets_init() {
register_sidebar( array(
'name' => __( 'Main Sidebar', 'ta-magazine' ),
'id' => 'sidebar-right',
'description' => __( 'Main sidebar that appears on the right.', 'ta-magazine' ),
'before_widget' => '<div id="%1$s" class="sidebar-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2 class="hr-bold">',
'after_title' => '</h2>',
) );

register_sidebar( array(
'name' => __( 'Footer Sidebar 1', 'ta-magazine' ),
'id' => 'footer-widget-1',
'description' => __( 'Appears on the left of the footer section of the site.', 'ta-magazine' ),
'before_widget' => '<div id="%1$s" class="footer-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
) );

register_sidebar( array(
'name' => __( 'Footer Sidebar 2', 'ta-magazine' ),
'id' => 'footer-widget-2',
'description' => __( 'Appears in the middle of the footer section of the site.', 'ta-magazine' ),
'before_widget' => '<div id="%1$s" class="footer-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
) );

register_sidebar( array(
'name' => __( 'Footer Sidebar 3', 'ta-magazine' ),
'id' => 'footer-widget-3',
'description' => __( 'Appears on the right of the footer section of the site.', 'ta-magazine' ),
'before_widget' => '<div id="%1$s" class="footer-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
) );

register_widget('ta_magazine_social_widget');
register_widget('ta_magazine_posts_widget');
register_widget('ta_magazine_post_tabs_widget');
register_widget('ta_magazine_popular_posts_widget');
register_widget('ta_magazine_slide_show_widget');
register_widget('ta_magazine_comments_widget');
register_widget('ta_magazine_about_widget');
register_widget('ta_magazine_mailchimp_widget');
}
add_action('widgets_init', 'ta_magazine_widgets_init');


function ta_magazine_scripts() {
wp_enqueue_style( 'ta-magazine-bootstrap-style', get_template_directory_uri() . '/layouts/bootstrap.min.css', array(), '3.3.4', 'all' );

wp_enqueue_style( 'ta-magazine-bootstrap-theme-style', get_template_directory_uri() . '/layouts/bootstrap-theme.min.css', array(), '3.3.4', 'all' );

wp_enqueue_style( 'ta-magazine-font-awesome-style', get_template_directory_uri() . '/layouts/font-awesome.min.css', array(), '4.3.0', 'all' );

wp_enqueue_style( 'ta-magazine-lightbox-style', get_template_directory_uri() . '/layouts/jquery.lightbox.css', array(), '', 'all' );

wp_enqueue_style( 'ta-magazine-owl-carousel-style', get_template_directory_uri() . '/layouts/owl.carousel.css', array(), '1.3.3', 'all' );

wp_enqueue_style( 'ta-magazine-owl-theme-style', get_template_directory_uri() . '/layouts/owl.theme.css', array(), '1.3.3', 'all' );

wp_enqueue_style( 'ta-magazine-owl-transitions-style', get_template_directory_uri() . '/layouts/owl.transitions.css', array(), '1.3.2', 'all' );

wp_enqueue_style( 'ta-magazine-custom-font-style', get_template_directory_uri() . '/layouts/font.css', array(), '', 'all' );

wp_enqueue_style( 'ta-magazine-style', get_stylesheet_uri() );

wp_enqueue_script( 'ta-magazine-bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '3.3.4', true );

wp_enqueue_script( 'ta-magazine-placeholder-js', get_template_directory_uri() . '/js/jquery.placeholder.js', array('jquery'), '', true );

wp_enqueue_script( 'ta-magazine-tinynav-js', get_template_directory_uri() . '/js/tinynav.min.js', array('jquery'), '1.2', true );

wp_enqueue_script( 'ta-magazine-lightbox-js', get_template_directory_uri() . '/js/jquery.lightbox.min.js', array('jquery'), '', true );

wp_enqueue_script( 'ta-magazine-owlcarousel-js', get_template_directory_uri() . '/js/owl.carousel.js', array('jquery'), '1.3.3', true );

wp_enqueue_script( 'ta-magazine-app-js', get_template_directory_uri() . '/js/app.js', array('jquery'), '', true );

wp_enqueue_script( 'masonry' );

if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'ta_magazine_scripts' );


if( !function_exists('ie_scripts') ) {
function ie_scripts() {
echo '<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->';
echo ' <!-- WARNING: Respond.js doesn\'t work if you view the page via file:// -->';
echo ' <!--[if lt IE 9]>';
echo ' <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>';
echo ' <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>';
echo ' <![endif]-->';
}
add_action('wp_head', 'ie_scripts');
} // end if


require_once get_template_directory() . '/inc/template-tags.php';


require_once get_template_directory() . '/inc/extras.php';


require_once get_template_directory() . '/inc/customizer.php';


require_once get_template_directory() . '/inc/jetpack.php';


require_once get_template_directory() . '/inc/category-icon.php';


require_once get_template_directory() . '/inc/breadcrumb.php';


require_once get_template_directory() . '/inc/comments-callback.php';


require_once get_template_directory() . '/inc/custom-metaboxes/CMB.php';


require_once get_template_directory() . '/inc/author-meta.php';


require_once get_template_directory() . '/inc/custom-css.php';


require_once (get_template_directory() . '/widgets/widget-social.php');
require_once (get_template_directory() . '/widgets/widget-posts.php');
require_once (get_template_directory() . '/widgets/widget-post-tabs.php');
require_once (get_template_directory() . '/widgets/widget-popular-posts.php');
require_once (get_template_directory() . '/widgets/widget-slide-show.php');
require_once (get_template_directory() . '/widgets/widget-comments.php');
require_once (get_template_directory() . '/widgets/widget-about.php');
require_once (get_template_directory() . '/widgets/widget-mailchimp.php');

Заранее спасибо!

SeVlad
На сайте с 03.11.2008
Offline
1609
#1
Provizor-071:
Заранее спасибо!

Заранее пожалуйста.

Читай документацию к теме и делай дочку. И конечно же не качай темы с помоек.

Тогда не только отпадёт 90% проблем, но и не появятся новые.

ЗЫ. Судя по if ( ta_option('custom_copyright') != '') дефолтные копирайты убираются прямо в админке пропиской своих.

Делаю хорошие сайты хорошим людям. Предпочтение коммерческим направлениям. Связь со мной через http://wp.me/P3YHjQ-3.
P0
На сайте с 05.06.2015
Offline
50
#2
SeVlad:
Заранее пожалуйста.
Тогда не только отпадёт 90% проблем, но и не появятся новые.

Это самая афигенная с бесплатных тем, которые встречал. Чем плохая? http://magazine.themeart.co/. Тема скачана с сайта разработчика.

ЗЫ. Судя по if ( ta_option('custom_copyright') != '') дефолтные копирайты убираются прямо в админке пропиской своих.

я лохман, действительно в админке весь футер убирается. Тема закрыта

SeVlad
На сайте с 03.11.2008
Offline
1609
#3
Provizor-071:
Чем плохая?

Не знаю. Я не говорил, что плохая.

Но если темы нет оф репо - для меня потенциальный риск. Тем более от неизвестного (мне) разработчика (где гарантии, что там нет закладок?). И уж если что понадобится, то вероятность помощи для темы, отсутствующей в оф репо стремится к нулю.

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий