Zdravím,
nevíte kde odstraním reklamu na webu http://www.renepastrnak.cz?
V administraci to neumím najít.
A bod dvě - je to šablona evolve - da se někde změnit to pozadi na jinou barvu nez biilou
Odstranění reklamy Vyřešeno
-
- Level 3.5
- Příspěvky: 816
- Registrován: leden 14
- Pohlaví:
- Stav:
Offline
- Microsheep
- Level 4.5
- Příspěvky: 1656
- Registrován: leden 10
- Pohlaví:
- Stav:
Offline
Re: Odstranění reklamy
Pozadí se standardně mění Přizpůsobit - Barvy - Barva pozadí.
Tu reklamu nejspíš nebude generovat téma. Zkus se kouknout do footer.php
Tu reklamu nejspíš nebude generovat téma. Zkus se kouknout do footer.php
-
- Level 3.5
- Příspěvky: 816
- Registrován: leden 14
- Pohlaví:
- Stav:
Offline
Re: Odstranění reklamy
Děkuji...
to pozadí nepujde dat asi pod ten text ze? (je to přes přiizpůsobit - barvy - barva pozadí)
A druhá věc - reklama dole zmizela,ale objevila se nahoře
header.php
to pozadí nepujde dat asi pod ten text ze? (je to přes přiizpůsobit - barvy - barva pozadí)
A druhá věc - reklama dole zmizela,ale objevila se nahoře
header.php
Kód: Vybrat vše
<?php
/**
* Template: Header.php
*
* @package EvoLve
* @subpackage Template
*/
?>
<!DOCTYPE html>
<!--BEGIN html-->
<html <?php language_attributes(); ?>>
<!--BEGIN head-->
<head>
<?php $evolve_favicon = evolve_get_option('evl_favicon'); if( $evolve_favicon ) { ?>
<!-- Favicon -->
<!-- Firefox, Chrome, Safari, IE 11+ and Opera. -->
<link href="<?php echo $evolve_favicon; ?>" rel="icon" type="image/x-icon" />
<?php } ?>
<!-- Meta Tags -->
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<?php wp_head(); ?>
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/ie.css">
<![endif]-->
</head><!--END head-->
<!--BEGIN body-->
<body <?php body_class(); ?>>
<?php $evolve_custom_background = evolve_get_option('evl_custom_background','1'); if ($evolve_custom_background == "1") { ?>
<div id="wrapper">
<?php } ?>
<div id="top"></div>
<!--BEGIN .header-->
<div class="header <?php $evolve_width_layout = evolve_get_option('evl_width_layout','fixed'); if( get_header_image() && $evolve_width_layout == "fluid" ): echo 'custom-header'; endif;?>">
<!--BEGIN .container-->
<div class="container container-header <?php $evolve_width_layout = evolve_get_option('evl_width_layout','fixed'); if( get_header_image() && $evolve_width_layout == "fixed" ): echo 'custom-header'; endif;?>">
<?php $evolve_social_links = evolve_get_option('evl_social_links','1'); if ( $evolve_social_links == "1" ) { ?>
<!--BEGIN #righttopcolumn-->
<div id="righttopcolumn">
<!--BEGIN #subscribe-follow-->
<div id="social">
<?php get_template_part('social-buttons', 'header'); ?></div>
<!--END #subscribe-follow-->
</div>
<!--END #righttopcolumn-->
<?php } ?>
<?php $evolve_pos_logo = evolve_get_option('evl_pos_logo','left'); if ($evolve_pos_logo == "disable") { ?>
<?php } else { ?>
<?php $evolve_header_logo = evolve_get_option('evl_header_logo', '');
if ($evolve_header_logo) {
echo "<a href=".home_url()."><img id='logo-image' class='img-responsive' src=".$evolve_header_logo." /></a>";
}
?>
<?php } ?>
<!--BEGIN .title-container-->
<div class="title-container">
<?php
$tagline = '<div id="tagline">'.get_bloginfo( 'description' ).'</div>';
$evolve_tagline_pos = evolve_get_option('evl_tagline_pos','next');
if (($evolve_tagline_pos !== "disable") && ($evolve_tagline_pos == "above")) {
echo $tagline;
} ?>
<?php $evolve_blog_title = evolve_get_option('evl_blog_title','0');
if ($evolve_blog_title == "0" || !$evolve_blog_title) { ?>
<div id="logo"><a href="<?php echo home_url(); ?>"><?php bloginfo( 'name' ) ?></a></div>
<?php } else { ?>
<?php } if (($evolve_tagline_pos !== "disable") && (($evolve_tagline_pos == "") || ($evolve_tagline_pos == "next") || ($evolve_tagline_pos == "under")))
{
echo $tagline;
} ?>
<!--END .title-container-->
</div>
<!--END .container-->
</div>
<!--END .header-->
</div>
<div class="menu-container">
<?php $evolve_menu_background = evolve_get_option('evl_disable_menu_back','1'); $evolve_width_layout = evolve_get_option('evl_width_layout','fixed'); if ( $evolve_width_layout == "fluid" && $evolve_menu_background == "1" ) { ?>
<div class="fluid-width">
<?php } ?>
<div class="menu-header">
<!--BEGIN .container-menu-->
<div class="container nacked-menu container-menu">
<?php $evolve_main_menu = evolve_get_option('evl_main_menu','0'); if ($evolve_main_menu == "1") { ?>
<br /><br />
<?php } else { ?>
<div class="primary-menu">
<?php
if ( has_nav_menu( 'primary-menu' ) ) {
echo '<nav id="nav" class="nav-holder link-effect">';
wp_nav_menu( array( 'theme_location' => 'primary-menu', 'menu_class' => 'nav-menu','fallback_cb' => 'wp_page_menu', 'walker' => new evolve_Walker_Nav_Menu() ) );
} else { ?>
<nav id="nav" class="nav-holder">
<?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'menu_class' => 'nav-menu','fallback_cb' => 'wp_page_menu') );} ?>
</nav>
</div>
<?php $evolve_searchbox = evolve_get_option('evl_searchbox','1'); if ( $evolve_searchbox == "1" ) { ?>
<!--BEGIN #searchform-->
<form action="<?php echo home_url(); ?>" method="get" class="searchform">
<div id="search-text-box">
<label class="searchfield" id="search_label_top" for="search-text-top"><input id="search-text-top" type="text" tabindex="1" name="s" class="search" placeholder="<?php _e( 'Type your search', 'evolve' ); ?>" /></label>
</div>
</form>
<div class="clearfix"></div>
<!--END #searchform-->
<?php } ?>
<?php $evolve_sticky_header = evolve_get_option('evl_sticky_header','1'); if ( $evolve_sticky_header == "1" ) {
// sticky header
get_template_part('sticky-header');
} ?>
<?php } ?>
</div>
</div>
<div class="menu-back">
<?php $evolve_slider_page_id = ''; $evolve_bootstrap = evolve_get_option('evl_bootstrap_slider','homepage');
if(!is_home() && !is_front_page() && !is_archive()) {
$evolve_slider_page_id = $post->ID;
}
if(!is_home() && is_front_page()) {
$evolve_slider_page_id = $post->ID;
}
if(is_home() && !is_front_page()){
$evolve_slider_page_id = get_option('page_for_posts');
}
if(get_post_meta($evolve_slider_page_id, 'evolve_slider_type', true) == 'bootstrap' || ($evolve_bootstrap == "homepage" && is_home()) || ($evolve_bootstrap == "homepage" && is_front_page()) || $evolve_bootstrap == "all" ):
evolve_bootstrap();
endif; ?>
<?php $evolve_slider_page_id = ''; $evolve_parallax = evolve_get_option('evl_parallax_slider','post');
if(!is_home() && !is_front_page() && !is_archive()) {
$evolve_slider_page_id = $post->ID;
}
if(!is_home() && is_front_page()) {
$evolve_slider_page_id = $post->ID;
}
if(is_home() && !is_front_page()){
$evolve_slider_page_id = get_option('page_for_posts');
}
if(get_post_meta($evolve_slider_page_id, 'evolve_slider_type', true) == 'parallax' || ($evolve_parallax == "homepage" && is_home()) || ($evolve_parallax == "homepage" && is_front_page()) || $evolve_parallax == "all" ):
$evolve_parallax_slider = evolve_get_option('evl_parallax_slider_support', '1');
if ($evolve_parallax_slider == "1"):
evolve_parallax();
endif;
endif; ?>
<?php $evolve_posts_slider = evolve_get_option('evl_posts_slider','post');
if(get_post_meta($evolve_slider_page_id, 'evolve_slider_type', true) == 'posts' || ($evolve_posts_slider == "homepage" && is_home()) || ($evolve_posts_slider == "homepage" && is_front_page()) || $evolve_posts_slider == "all" ):
$evolve_carousel_slider = evolve_get_option('evl_carousel_slider', '1');
if ($evolve_carousel_slider == "1"):
evolve_posts_slider();
endif;
endif; ?>
<?php $evolve_width_layout = evolve_get_option('evl_width_layout','fixed'); if ( $evolve_width_layout == "fluid" ) { ?>
<div class="container">
<?php } ?>
<?php $evolve_header_widgets_placement = evolve_get_option('evl_header_widgets_placement', 'home');
$evolve_widget_this_page = get_post_meta($post->ID, 'evolve_widget_page', true);
if (((is_home() || is_front_page()) && $evolve_header_widgets_placement == "home") || (is_single() && $evolve_header_widgets_placement == "single") || (is_page() && $evolve_header_widgets_placement == "page") || ($evolve_header_widgets_placement == "all") || ($evolve_widget_this_page == "yes" && $evolve_header_widgets_placement == "custom")) { ?>
<?php $evolve_widgets_header = evolve_get_option('evl_widgets_header','disable');
// if Header widgets exist
if (($evolve_widgets_header == "") || ($evolve_widgets_header == "disable"))
{ } else { ?>
<?php
$evolve_header_css = '';
if ($evolve_widgets_header == "one") { $evolve_header_css = 'widget-one-column col-sm-6'; }
if ($evolve_widgets_header == "two") { $evolve_header_css = 'col-sm-6 col-md-6'; }
if ($evolve_widgets_header == "three") { $evolve_header_css = 'col-sm-6 col-md-4'; }
if ($evolve_widgets_header == "four") { $evolve_header_css = 'col-sm-6 col-md-3'; }
?>
<div class="container">
<div class="widgets-back-inside row">
<div class="<?php echo $evolve_header_css; ?>">
<?php if ( !dynamic_sidebar( 'header-1' )) : ?>
<?php endif; ?>
</div>
<div class="<?php echo $evolve_header_css; ?>">
<?php if ( !dynamic_sidebar( 'header-2' ) ) : ?>
<?php endif; ?>
</div>
<div class="<?php echo $evolve_header_css; ?>">
<?php if ( !dynamic_sidebar( 'header-3' ) ) : ?>
<?php endif; ?>
</div>
<div class="<?php echo $evolve_header_css; ?>">
<?php if ( !dynamic_sidebar( 'header-4' ) ) : ?>
<?php endif; ?>
</div>
</div>
</div>
<?php } ?>
<?php } else {} ?>
</div>
</div>
<?php $evolve_width_layout = evolve_get_option('evl_width_layout','fixed'); if ( $evolve_width_layout == "fluid" ) { ?>
</div>
<?php } ?>
<!--BEGIN .content-->
<div class="content <?php semantic_body(); ?>">
<?php if (is_page_template('contact.php')): ?>
<div class="gmap" id="gmap"></div>
<?php endif; ?>
<!--BEGIN .container-->
<div class="container container-center row">
<!--BEGIN #content-->
<div id="content">
<?php if (is_home() || is_front_page()) {
evolve_content_boxes();
} ?>
Re: Odstranění reklamy
nevkládá ti tam reklamu hosting?
-
- Level 3.5
- Příspěvky: 816
- Registrován: leden 14
- Pohlaví:
- Stav:
Offline
Re: Odstranění reklamy
neměl by - dole se mi podařila zničit ... jedině ze by nějaka aplikace nebo widget, ale ja jsem u wedosu
Re: Odstranění reklamy
dej sem index.php ze šablony nebo functions.php
-
- Level 3.5
- Příspěvky: 816
- Registrován: leden 14
- Pohlaví:
- Stav:
Offline
Re: Odstranění reklamy
Kód: Vybrat vše
<?php
/**
* Template: Index.php
*
* @package EvoLve
* @subpackage Template
*/
get_header();
?>
<?php $xyz = "";
$evolve_layout = evolve_get_option('evl_layout','2cl');
$evolve_post_layout = evolve_get_option('evl_post_layout','two');
$evolve_nav_links = evolve_get_option('evl_nav_links','after');
$evolve_header_meta = evolve_get_option('evl_header_meta','single_archive');
$evolve_category_page_title = evolve_get_option('evl_category_page_title','1');
$evolve_excerpt_thumbnail = evolve_get_option('evl_excerpt_thumbnail','0');
$evolve_share_this = evolve_get_option('evl_share_this','single');
$evolve_post_links = evolve_get_option('evl_post_links','after');
$evolve_similar_posts = evolve_get_option('evl_similar_posts','disable');
$evolve_featured_images = evolve_get_option('evl_featured_images','1');
$evolve_thumbnail_default_images=evolve_get_option('evl_thumbnail_default_images','0');
$evolve_posts_excerpt_title_length=intval(evolve_get_option('evl_posts_excerpt_title_length','40'));
$evolve_blog_featured_image = evolve_get_option('evl_blog_featured_image','0');
if (($evolve_layout == "1c"))
{ ?>
<?php } else { ?>
<?php $options = get_option('evolve');
if((is_page() || is_single()) && get_post_meta($post->ID, 'evolve_full_width', true) == 'yes'):
else:
if ($evolve_layout == "3cm" || $evolve_layout == "3cl" || $evolve_layout == "3cr") { ?>
<?php get_sidebar('2'); ?>
<?php } ?>
<?php endif; ?>
<?php } ?>
<!--BEGIN #primary .hfeed-->
<div id="primary" class="<?php if ($evolve_layout == "1c") {echo ' col-md-12';} else {echo ' col-xs-12 col-sm-6'; if (($evolve_layout == "2cr" && ($evolve_post_layout == "two") || $evolve_layout == "2cl" && ($evolve_post_layout == "two"))) { echo ' col-md-8';} if (($evolve_layout == "3cm" || $evolve_layout == "3cl" || $evolve_layout == "3cr")) {echo ' col-md-6';} else {echo ' col-md-8'; } if ( is_single() || is_page() ) { echo ' col-single'; } } ?>
<?php
$content_css = '';
if(get_post_meta($post->ID, 'evolve_full_width', true) == 'yes'):
$content_css = ' full-width';
echo $content_css;
endif;?>">
<?php
$evolve_breadcrumbs = evolve_get_option('evl_breadcrumbs','1');
if ($evolve_breadcrumbs == "1"):
if (is_home() || is_front_page()):
else:evolve_breadcrumb();
endif;
endif; ?>
<!-- attachment begin -->
<?php if (is_attachment()) { ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<!--BEGIN .hentry-->
<div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>">
<?php $options = get_option('evolve'); if (($evolve_header_meta == "") || ($evolve_header_meta == "single_archive"))
{ ?>
<h1 class="entry-title"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment" class="attach-font"><?php echo get_the_title($post->post_parent); ?></a> » <?php if ( get_the_title() ){ the_title();
} ?></h1>
<!--BEGIN .entry-meta .entry-header-->
<div class="entry-meta entry-header">
<a href="<?php the_permalink() ?>"><span class="published updated"><?php the_time(get_option('date_format')); ?></span></a>
<?php if ( comments_open() ) : ?>
<span class="comment-count"><?php comments_popup_link( __( 'Leave a Comment', 'evolve' ), __( '1 Comment', 'evolve' ), __( '% Comments', 'evolve' ) ); ?></span>
<?php else : // comments are closed
endif; ?>
<span class="author vcard">
<?php $evolve_author_avatar = evolve_get_option('evl_author_avatar','0');
if ($evolve_author_avatar == "1") { echo get_avatar( get_the_author_meta('email'), '30' ); } ?>
<?php _e( 'By', 'evolve' ); ?> <strong><?php printf( '<a class="url fn" href="' . get_author_posts_url( $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'View all posts by %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></strong></span>
<?php edit_post_link( __( 'edit', 'evolve' ), '<span class="edit-post">', '</span>' ); ?>
<!--END .entry-meta .entry-header-->
</div>
<?php } else { ?>
<h1 class="entry-title"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <?php the_title(); ?></h1>
<?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
<?php edit_post_link( __( 'EDIT', 'evolve' ), '<span class="edit-post edit-attach">', '</span>' ); ?>
<?php endif; ?>
<?php } ?>
<!--BEGIN .entry-content .article-->
<div class="entry-content article">
<?php if ( wp_attachment_is_image() ) :
$attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
foreach ( $attachments as $k => $attachment ) {
if ( $attachment->ID == $post->ID )
break;
}
$k++;
// If there is more than 1 image attachment in a gallery
if ( count( $attachments ) > 1 ) {
if ( isset( $attachments[ $k ] ) )
// get the URL of the next image attachment
$next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
else
// or get the URL of the first image attachment
$next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
} else {
// or, if there's only 1 image attachment, get the URL of the image
$next_attachment_url = wp_get_attachment_url();
}
?>
<p class="attachment" align="center"><a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" class="single-gallery-image"><?php
echo wp_get_attachment_image( $post->ID, $size='medium' ); // filterable image width with, essentially, no limit for image height.
?></a></p>
<div class="navigation-links single-page-navigation clearfix row">
<div class="col-sm-6 col-md-6 nav-previous"><?php previous_image_link ( false, '<div class="btn btn-left icon-arrow-left icon-big">Previous Image</div>' ); ?></div>
<div class="col-sm-6 col-md-6 nav-next"><?php next_image_link ( false, '<div class="btn btn-right icon-arrow-right icon-big">Next Image</div>' ); ?></div>
<!--END .navigation-links-->
</div>
<?php else : ?>
<a href="<?php echo wp_get_attachment_url(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php echo basename( get_permalink() ); ?></a>
<?php endif; ?>
<div class="entry-caption"><?php if ( !empty( $post->post_excerpt ) ) the_excerpt(); ?></div>
<!--END .entry-content .article-->
<div class="clearfix"></div>
</div>
<!--END .hentry-->
</div>
<?php $options = get_option('evolve'); if (($evolve_share_this == "single_archive") || ($evolve_share_this == "all")) {
evolve_sharethis(); } else { ?> <div class="margin-40"></div> <?php }?>
<?php comments_template( '', true ); ?>
<?php endwhile; else : ?>
<!--BEGIN #post-0-->
<div id="post-0" class="<?php semantic_entries(); ?>">
<h1 class="entry-title"><?php _e( 'Not Found', 'evolve' ); ?></h1>
<!--BEGIN .entry-content-->
<div class="entry-content">
<p><?php _e( 'Sorry, no attachments matched your criteria.', 'evolve' ); ?></p>
<!--END .entry-content-->
</div>
<!--END #post-0-->
</div>
<!-- attachment end -->
<?php endif; ?>
<!-- single post begin -->
<?php } elseif (is_single()) { ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php $options = get_option('evolve'); if (($evolve_post_links == "before") || ($evolve_post_links == "both")) { ?>
<span class="nav-top">
<?php get_template_part( 'navigation', 'index' ); ?>
</span>
<?php } ?>
<!--BEGIN .hentry-->
<div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?> col-md-12">
<?php $options = get_option('evolve'); if (($evolve_header_meta == "") || ($evolve_header_meta == "single") || ($evolve_header_meta == "single_archive"))
{ ?> <h1 class="entry-title"><?php if ( get_the_title() ){ the_title(); } ?></h1>
<!--BEGIN .entry-meta .entry-header-->
<div class="entry-meta entry-header">
<a href="<?php the_permalink() ?>"><span class="published updated"><?php the_time(get_option('date_format')); ?></span></a>
<?php if ( comments_open() ) : ?>
<span class="comment-count"><?php comments_popup_link( __( 'Leave a Comment', 'evolve' ), __( '1 Comment', 'evolve' ), __( '% Comments', 'evolve' ) ); ?></span>
<?php else : // comments are closed
endif; ?>
<span class="author vcard">
<?php $evolve_author_avatar = evolve_get_option('evl_author_avatar','0');
if ($evolve_author_avatar == "1") { echo get_avatar( get_the_author_meta('email'), '30' );
} ?>
<?php _e( 'Written by', 'evolve' ); ?> <strong><?php printf( '<a class="url fn" href="' . get_author_posts_url( $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'View all posts by %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></strong></span>
<?php edit_post_link( __( 'edit', 'evolve' ), '<span class="edit-post">', '</span>' ); ?>
<!--END .entry-meta .entry-header-->
</div> <?php } else { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
<?php edit_post_link( __( 'EDIT', 'evolve' ), '<span class="edit-post edit-attach">', '</span>' ); ?>
<?php endif; ?>
<?php } ?>
<?php
if($evolve_blog_featured_image == "1" && has_post_thumbnail()) {
echo '<span class="thumbnail-post-single">';
the_post_thumbnail('post-thumbnail');
echo '</span>';
}
?>
<!--BEGIN .entry-content .article-->
<div class="entry-content article">
<?php the_content( __('READ MORE »', 'evolve' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div id="page-links"><p>' . __( '<strong>Pages:</strong>', 'evolve' ), 'after' => '</p></div>' ) ); ?>
<!--END .entry-content .article-->
<div class="clearfix"></div>
</div>
<!--BEGIN .entry-meta .entry-footer-->
<div class="entry-meta entry-footer row">
<div class="col-md-6">
<?php if ( evolve_get_terms( 'cats' ) ) { ?>
<div class="entry-categories"> <?php echo evolve_get_terms( 'cats' ); ?></div>
<?php } ?>
<?php if ( evolve_get_terms( 'tags' ) ) { ?>
<div class="entry-tags"> <?php echo evolve_get_terms( 'tags' ); ?></div>
<?php } ?>
<!--END .entry-meta .entry-footer-->
</div>
<div class="col-md-6">
<?php $options = get_option('evolve'); if (($evolve_share_this == "") || ($evolve_share_this == "single") || ($evolve_share_this == "single_archive") || ($evolve_share_this == "all")) {
evolve_sharethis(); } else { ?> <div class="margin-40"></div> <?php }?>
</div>
</div>
<!-- Auto Discovery Trackbacks
<?php trackback_rdf(); ?>
-->
<!--END .hentry-->
</div>
<?php $options = get_option('evolve'); if (($evolve_similar_posts == "") || ($evolve_similar_posts == "disable")) {} else {
evolve_similar_posts(); } ?>
<?php $options = get_option('evolve'); if (($evolve_post_links == "") || ($evolve_post_links == "after") || ($evolve_post_links == "both")) { ?>
<?php get_template_part( 'navigation', 'index' ); ?>
<?php } ?>
<?php comments_template( '', true ); ?>
<?php endwhile; else : ?>
<!--BEGIN #post-0-->
<div id="post-0" class="<?php semantic_entries(); ?>">
<h1 class="entry-title"><?php _e( 'Not Found', 'evolve' ); ?></h1>
<!--BEGIN .entry-content-->
<div class="entry-content">
<p><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'evolve' ); ?></p>
<?php get_search_form(); ?>
<!--END .entry-content-->
</div>
<!--END #post-0-->
</div>
<?php endif; ?>
<!-- single post end -->
<!-- home/date/category/tag/search/author begin -->
<?php } elseif (is_home() || is_date() || is_category() || is_tag() || is_search() || is_author()) { ?>
<!-- 2 or 3 columns begin -->
<?php if (is_date()) { ?>
<?php /* If this is a daily archive */ if ( is_day() ) { ?>
<h2 class="page-title archive-title"><?php _e( 'Daily archives for', 'evolve' ); ?> <span class="daily-title updated"><?php the_time( 'F jS, Y' ); ?></span></h2>
<?php /* If this is a monthly archive */ } elseif ( is_month() ) { ?>
<h2 class="page-title archive-title"><?php _e( 'Monthly archives for', 'evolve' ); ?> <span class="monthly-title updated"><?php the_time( 'F, Y' ); ?></span></h2>
<?php /* If this is a yearly archive */ } elseif ( is_year() ) { ?>
<h2 class="page-title archive-title"><?php _e( 'Yearly archives for', 'evolve' ); ?> <span class="yearly-title updated"><?php the_time( 'Y' ); ?></span></h2>
<?php } ?>
<?php } elseif (is_category() && $evolve_category_page_title) { ?>
<h2 class="page-title archive-title"><?php _e( 'Posts in category', 'evolve' ); ?> <span id="category-title"><?php single_cat_title(); ?></span></h2>
<?php } elseif (is_tag()) { ?>
<h2 class="page-title archive-title"><?php _e( 'Posts tagged', 'evolve' ); ?> <span id="tag-title"><?php single_tag_title(); ?></span></h2>
<?php } elseif (is_search()) { ?>
<h2 class="page-title search-title"><?php _e( 'Search results for', 'evolve' ); ?> <?php echo '<span class="search-term">'.the_search_query().'</span>'; ?></h2>
<?php } elseif (is_author()) { ?>
<h2 class="page-title archive-title"><?php _e( 'Posts by', 'evolve' ); ?> <span class="author-title"><?php the_post(); echo $authordata->display_name; rewind_posts(); ?></span></h2>
<?php } ?>
<?php $options = get_option('evolve'); if ($evolve_post_layout == "two" || $evolve_post_layout == "three") { ?>
<?php if (($evolve_nav_links == "before") || ($evolve_nav_links == "both")) { ?>
<span class="nav-top">
<?php get_template_part( 'navigation', 'index' ); ?>
</span>
<?php } else {?>
<?php } ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<!--BEGIN .hentry-->
<div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); if ($evolve_post_layout == "two") { echo ' col-md-6 odd'.($xyz++%2); } else { echo ' col-md-4 odd'.($xyz++%3); } ?> <?php if (has_post_format( array('aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video'),'')) { echo 'formatted-post'; } ?> margin-40">
<?php $options = get_option('evolve'); if (($evolve_header_meta == "") || ($evolve_header_meta == "single_archive"))
{ ?>
<h2 class="entry-title">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php
if ( get_the_title() ){ $title = the_title('', '', false);
echo evolve_truncate($title, $evolve_posts_excerpt_title_length, '...'); } ?></a>
</h2>
<!--BEGIN .entry-meta .entry-header-->
<div class="entry-meta entry-header">
<a href="<?php the_permalink() ?>"><span class="published updated"><?php the_time(get_option('date_format')); ?></span></a>
<span class="author vcard">
<?php _e( 'Written by', 'evolve' ); ?> <strong><?php printf( '<a class="url fn" href="' . get_author_posts_url( $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'View all posts by %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></strong></span>
<?php edit_post_link( __( 'edit', 'evolve' ), '<span class="edit-post">', '</span>' ); ?>
<!--END .entry-meta .entry-header-->
</div>
<?php } else { ?>
<h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php
if ( get_the_title() ){ $title = the_title('', '', false);
echo evolve_truncate($title, 40, '...'); }
?></a> </h1>
<?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
<?php edit_post_link( __( 'EDIT', 'evolve' ), '<span class="edit-post edit-attach">', '</span>' ); ?>
<?php endif; ?>
<?php } ?>
<!--BEGIN .entry-content .article-->
<div class="entry-content article">
<?php if ($evolve_featured_images == "1") { ?>
<?php
if(has_post_thumbnail()) {
echo '<span class="thumbnail-post"><a href="'; the_permalink(); echo '">';the_post_thumbnail('post-thumbnail'); echo '
<div class="mask">
<div class="icon"></div>
</div>
</a></span>';
} else {
$image = evolve_get_first_image();
if ($image):
echo '<span class="thumbnail-post"><a href="'; the_permalink(); echo'"><img src="'.$image.'" alt="';the_title();echo'" />
<div class="mask">
<div class="icon"></div>
</div>
</a></span>';
else:
if($evolve_thumbnail_default_images==0)
{
echo '<span class="thumbnail-post"><a href="'; the_permalink(); echo'"><img src="'.get_template_directory_uri().'/library/media/images/no-thumbnail.jpg" alt="';the_title();echo'" />
<div class="mask">
<div class="icon"></div>
</div>
</a></span>';
}
endif;
} ?>
<?php } ?>
<?php the_excerpt(); ?>
<div class="entry-meta entry-footer">
<div class="read-more btn btn-right icon-arrow-right">
<a href="<?php the_permalink(); ?>"><?php _e('READ MORE', 'evolve' ); ?></a>
</div>
<?php if ( comments_open() ) : ?>
<span class="comment-count"><?php comments_popup_link( __( 'Leave a Comment', 'evolve' ), __( '1 Comment', 'evolve' ), __( '% Comments', 'evolve' ) ); ?></span>
<?php else : // comments are closed
endif; ?>
</div>
<!--END .entry-content .article-->
<div class="clearfix"></div>
</div>
<!--END .hentry-->
</div>
<?php $i='';$i++; ?>
<?php endwhile; ?>
<?php get_template_part( 'navigation', 'index' ); ?>
<?php else : ?>
<?php if (is_search()) { ?>
<!--BEGIN #post-0-->
<div id="post-0" class="<?php semantic_entries(); ?>">
<h1 class="entry-title"><?php _e( 'Your search for', 'evolve' ); ?> "<?php echo the_search_query(); ?>" <?php _e( 'did not match any entries', 'evolve' ); ?></h1>
<!--BEGIN .entry-content-->
<div class="entry-content">
<br />
<p><?php _e( 'Suggestions:', 'evolve' ); ?></p>
<ul>
<li><?php _e( 'Make sure all words are spelled correctly.', 'evolve' ); ?></li>
<li><?php _e( 'Try different keywords.', 'evolve' ); ?></li>
<li><?php _e( 'Try more general keywords.', 'evolve' ); ?></li>
</ul>
<!--END .entry-content-->
</div>
<!--END #post-0-->
</div>
<?php } else { ?>
<!--BEGIN #post-0-->
<div id="post-0" class="<?php semantic_entries(); ?>">
<h1 class="entry-title"><?php _e( 'Not Found', 'evolve' ); ?></h1>
<!--BEGIN .entry-content-->
<div class="entry-content">
<p><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'evolve' ); ?></p>
<!--END .entry-content-->
</div>
<!--END #post-0-->
</div>
<?php } ?>
<?php endif; ?>
<!-- 2 or 3 columns end -->
<!-- 1 column begin -->
<?php } else { ?>
<?php if (($evolve_nav_links == "before") || ($evolve_nav_links == "both")) { ?>
<span class="nav-top">
<?php get_template_part( 'navigation', 'index' ); ?>
</span>
<?php } else {?>
<?php } ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<!--BEGIN .hentry-->
<div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?> <?php if (has_post_format( array('aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video'),'') || is_sticky()) { echo 'formatted-post formatted-single margin-40'; } ?>">
<?php if (($evolve_header_meta == "") || ($evolve_header_meta == "single_archive"))
{ ?>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php if ( get_the_title() ){ the_title();} ?></a></h1>
<!--BEGIN .entry-meta .entry-header-->
<div class="entry-meta entry-header">
<a href="<?php the_permalink() ?>"><span class="published updated"><?php the_time(get_option('date_format')); ?></span></a>
<?php if ( comments_open() ) : ?>
<span class="comment-count"><a href="<?php comments_link(); ?>"><?php comments_popup_link( __( 'Leave a Comment', 'evolve' ), __( '1 Comment', 'evolve' ), __( '% Comments', 'evolve' ) ); ?></a></span>
<?php else : // comments are closed
endif; ?>
<span class="author vcard">
<?php $evolve_author_avatar = evolve_get_option('evl_author_avatar','0');
if ($evolve_author_avatar == "1") { echo get_avatar( get_the_author_meta('email'), '30' );
} ?>
<?php _e( 'Written by', 'evolve' ); ?> <strong><?php printf( '<a class="url fn" href="' . get_author_posts_url( $authordata->ID, $authordata->user_nicename ) . '" title="' . sprintf( 'View all posts by %s', $authordata->display_name ) . '">' . get_the_author() . '</a>' ) ?></strong></span>
<?php edit_post_link( __( 'edit', 'evolve' ), '<span class="edit-post">', '</span>' ); ?>
<!--END .entry-meta .entry-header-->
</div>
<?php } else { ?>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php if ( get_the_title() ){ the_title();} ?></a></h1>
<?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
<?php edit_post_link( __( 'EDIT', 'evolve' ), '<span class="edit-post edit-attach">', '</span>' ); ?>
<?php endif; ?>
<?php } ?>
<!--BEGIN .entry-content .article-->
<div class="entry-content article">
<?php if ($evolve_featured_images == "1") { ?>
<?php
if(has_post_thumbnail()) {
echo '<span class="thumbnail-post"><a href="'; the_permalink(); echo '">';the_post_thumbnail('post-thumbnail'); echo '
<div class="mask">
<div class="icon"></div>
</div>
</a></span>';
} else {
$image = evolve_get_first_image();
if ($image):
echo '<span class="thumbnail-post"><a href="'; the_permalink(); echo'"><img src="'.$image.'" alt="';the_title();echo'" />
<div class="mask">
<div class="icon"></div>
</div>
</a></span>';
else:
if($evolve_thumbnail_default_images==0)
{
echo '<span class="thumbnail-post"><a href="'; the_permalink(); echo'"><img src="'.get_template_directory_uri().'/library/media/images/no-thumbnail.jpg" alt="';the_title();echo'" />
<div class="mask">
<div class="icon"></div>
</div>
</a></span>';
}
endif;
} ?>
<?php } ?>
<?php if (($evolve_excerpt_thumbnail == "1")) { ?>
<?php the_excerpt();?>
<div class="read-more btn btn-right icon-arrow-right">
<a href="<?php the_permalink(); ?>"><?php _e('READ MORE', 'evolve' ); ?></a>
</div>
<?php } else { ?>
<?php the_content( __('READ MORE »', 'evolve' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div id="page-links"><p>' . __( '<strong>Pages:</strong>', 'evolve' ), 'after' => '</p></div>' ) ); ?>
<?php } ?>
<!--END .entry-content .article-->
<div class="clearfix"></div>
</div>
<!--BEGIN .entry-meta .entry-footer-->
<div class="entry-meta entry-footer row">
<div class="col-md-6">
<?php if ( evolve_get_terms( 'cats' ) ) { ?>
<div class="entry-categories"> <?php echo evolve_get_terms( 'cats' ); ?></div>
<?php } ?>
<?php if ( evolve_get_terms( 'tags' ) ) { ?>
<div class="entry-tags"> <?php echo evolve_get_terms( 'tags' ); ?></div>
<?php } ?>
<!--END .entry-meta .entry-footer-->
</div>
<div class="col-md-6">
<?php if (($evolve_share_this == "single_archive") || ($evolve_share_this == "all")) {
evolve_sharethis(); } else { ?> <div class="margin-40"></div> <?php }?>
</div>
</div>
<!--END .hentry-->
</div>
<?php comments_template(); ?>
<?php endwhile; ?>
<?php if (($evolve_nav_links == "") || ($evolve_nav_links == "after") || ($evolve_nav_links == "both")) { ?>
<?php get_template_part( 'navigation', 'index' ); ?>
<?php } else {?>
<?php } ?>
<?php else : ?>
<?php if (is_search()) { ?>
<!--BEGIN #post-0-->
<div id="post-0" class="<?php semantic_entries(); ?>">
<h1 class="entry-title"><?php _e( 'Your search for', 'evolve' ); ?> "<?php echo the_search_query(); ?>" <?php _e( 'did not match any entries', 'evolve' ); ?></h1>
<!--BEGIN .entry-content-->
<div class="entry-content">
<br />
<p><?php _e( 'Suggestions:', 'evolve' ); ?></p>
<ul>
<li><?php _e( 'Make sure all words are spelled correctly.', 'evolve' ); ?></li>
<li><?php _e( 'Try different keywords.', 'evolve' ); ?></li>
<li><?php _e( 'Try more general keywords.', 'evolve' ); ?></li>
</ul>
<!--END .entry-content-->
</div>
<!--END #post-0-->
</div>
<?php } else { ?>
<!--BEGIN #post-0-->
<div id="post-0" class="<?php semantic_entries(); ?>">
<h1 class="entry-title"><?php _e( 'Not Found', 'evolve' ); ?></h1>
<!--BEGIN .entry-content-->
<div class="entry-content">
<p><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'evolve' ); ?></p>
<!--END .entry-content-->
</div>
<!--END #post-0-->
</div>
<?php } ?>
<?php endif; ?>
<?php } ?>
<!-- 1 column end -->
<!-- home/date/category/tag/search/author end -->
<?php } elseif (is_page()) { ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<!--BEGIN .hentry-->
<div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>">
<h1 class="entry-title"><?php if ( get_the_title() ){ the_title(); } ?></h1>
<?php if ( current_user_can( 'edit_post', $post->ID ) ): ?>
<?php edit_post_link( __( 'EDIT', 'evolve' ), '<span class="edit-page">', '</span>' ); ?>
<?php endif; ?>
<!--BEGIN .entry-content .article-->
<div class="entry-content article">
<?php the_content( __('READ MORE »', 'evolve' ) ); ?>
<!--END .entry-content .article-->
<div class="clearfix"></div>
</div>
<!-- Auto Discovery Trackbacks
<?php trackback_rdf(); ?>
-->
<!--END .hentry-->
</div>
<?php if( $evolve_share_this == 'all' ) evolve_sharethis(); ?>
<?php if ( 'page' !== get_option('show_on_front') ) comments_template( '', true ); ?>
<?php endwhile; endif; ?>
<?php } elseif (is_404()) { ?>
<!--BEGIN #post-0-->
<div id="post-0" class="<?php semantic_entries(); ?>">
<h1 class="entry-title"><?php _e( 'Not Found', 'evolve' ); ?></h1>
<!--BEGIN .entry-content-->
<div class="entry-content">
<p><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'evolve' ); ?></p>
<!--END .entry-content-->
</div>
<!--END #post-0-->
</div>
<?php } ?>
<!--END #primary .hfeed-->
</div>
<?php
if (($evolve_layout == "1c"))
{ ?>
<?php } else { ?>
<?php if((is_page() || is_single()) && get_post_meta($post->ID, 'evolve_full_width', true) == 'yes'):
else: ?>
<?php get_sidebar(); ?>
<?php endif; ?>
<?php } ?>
<?php get_footer(); ?>
Index.php je vysu a functions.php dole
Kód: Vybrat vše
<?php
$evolve_themename = "evolve";
if ( get_stylesheet_directory() == get_template_directory() ) {
define('EVOLVE_URL', get_template_directory() . '/library/functions/');
define('EVOLVE_DIRECTORY', get_template_directory_uri() . '/library/functions/');
} else {
define('EVOLVE_URL', get_template_directory() . '/library/functions/');
define('EVOLVE_DIRECTORY', get_template_directory_uri() . '/library/functions/');
}
get_template_part( 'library/functions/options-framework' );
get_template_part( 'library/functions/basic-functions' );
get_template_part( 'library/functions/options' );
?>
Re: Odstranění reklamy
Tak reklamu tam asi dává hosting, ale můžeš jí skrýt pomocí CSS / JS.
CSS:
Javascript(jQuery):
A nebo obyčejný JS:
Ale pozor, abys neporušoval nějaké jejich podmínky.
CSS:
Kód: Vybrat vše
.partner {
display: none;
}
Javascript(jQuery):
Kód: Vybrat vše
$(".partner").hide();
A nebo obyčejný JS:
Kód: Vybrat vše
document.getElementsByClassName("partner")[0].style.display = "none";
Ale pozor, abys neporušoval nějaké jejich podmínky.
-
- Level 3.5
- Příspěvky: 816
- Registrován: leden 14
- Pohlaví:
- Stav:
Offline
Re: Odstranění reklamy
Majiteli webu nahlášeno :) stejně uvažuje o přechod k placené verzi (poskytovatel endora, jde je teď (moje chyba))
A jak tu reklamu mužů dat dolu ??
A jak tu reklamu mužů dat dolu ??
Re: Odstranění reklamy Vyřešeno
https://podpora.endora.cz/viewtopic.php?id=5835 tady je přímo screen, jak to udělat.
-
- Mohlo by vás zajímat
- Odpovědi
- Zobrazení
- Poslední příspěvek
-
- 8
- 3351
-
od Ltb
Zobrazit poslední příspěvek
15 dub 2024 21:47
-
- 4
- 5276
-
od ArtisPier
Zobrazit poslední příspěvek
26 zář 2023 12:29
-
-
odstranění automatického přepnutí na druhý monitor
od tominaxx » 19 črc 2023 15:36 » v Windows 11, 10, 8... - 5
- 1598
-
od tominaxx
Zobrazit poslední příspěvek
19 črc 2023 22:45
-
Zpět na “Web-tipy a vaše weby”
Kdo je online
Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 12 hostů