Eliminar barra lateral izquierda en entradas de tema graphene

  • Autor Autor jorge94
  • Fecha de inicio Fecha de inicio
J

jorge94

Alfa
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
Hola a todos.

Vengo de este hilo:

http://forobeta.com/wordpress/581635-escalar-imagen-del-slider.html

Y creo que es más oportuno abrir otro hilo para diferenciarlo del anterior tema, ya que son cosas distintas.


Estoy utilizando el tema graphene (tipo blog), y cuando creo una entrada nueva, dándole el formato de imagen, al publicarse se me queda de esta manera:

JSbH6SV.png


DpnwyoM.png


Quiero dejar la imagen entera, con el títulode arriba, sin que salga al lado izquierdo de la foto eso que señalo. No veo ninguna opción del tema y en la web del autor no encuentro nada.

Solo me queda este pequeño problemilla para terminar mi web.

Muchas gracias.
 
Te tocara tocar codigo, si no viene la opcion por defecto deberas editar el codigo fuente del tema.
 
Ahi estas logueado como administrador, ya checaste como la ve un usuario?
 
Ahi estas logueado como administrador, ya checaste como la ve un usuario?

Como usuario se ve lo mismo, quitando lo de editar entrada claro. Es muy molesta esa columna.

No tengo tantos conocimientos para personalizar ese código fuente, por eso pregunto.

Muchas gracias.
 
si no tienes muchos conocimientos para editar el codigo, descarga un plugins llamado yellow pencil, es un editor frotend lo cual te modifica el codigo.
 
si no tienes muchos conocimientos para editar el codigo, descarga un plugins llamado yellow pencil, es un editor frotend lo cual te modifica el codigo.

Voy a probarla.

No creo que sea difícil tocar ese código, pero es que no encuentro cómo se llama esa parte del código para buscarla. Es barra a la izquierda de la imagen.
 
Voy a probarla.

No creo que sea difícil tocar ese código, pero es que no encuentro cómo se llama esa parte del código para buscarla. Es barra a la izquierda de la imagen.

Qué tal si antes de cualquier cosa, le das a publicar como entrada normal, es decir, elimina eso de formato de imagen.
 
Qué tal si antes de cualquier cosa, le das a publicar como entrada normal, es decir, elimina eso de formato de imagen.


Ya lo hice, pero el esquema que sigue es de resumen de la entrada, por lo que no se me vería la imagen entera.

Creo que lo he solucionado así. Corregidme si me equivoco por favor:

Insertar CODE, HTML o PHP:
.entry-header .format-title{
	display: none;
}

.entries-wrapper .hentry .entry-content{
	padding-left:0px;
}

.post-format-thumbnail{
	display: none;
}

.entry-date{
	display: none;
}


Muchas gracias
 
Vas a tener que entrar a editar la estructura u.u
 
Lo que has hecho es ocultarlo mediante codigo CSS a lo que se refiere el usuario de arriba, es que debes modificar el código donde se encuentre lo mencionado, tal vez este dentro de tu archivo single.php o sidebar.php y así modificas la estructura del theme eliminando las lineas que muestren el mensaje.
 
Lo que has hecho es ocultarlo mediante codigo CSS a lo que se refiere el usuario de arriba, es que debes modificar el código donde se encuentre lo mencionado, tal vez este dentro de tu archivo single.php o sidebar.php y así modificas la estructura del theme eliminando las lineas que muestren el mensaje.

Muchas gracias.

Voy a intentarlo, aunque no creo que sepa. Miraré por esos archivos.

Haciendo eso entonces ya no necesitaré ocultarlo por css.

- - - Actualizado - - -

Lo que has hecho es ocultarlo mediante codigo CSS a lo que se refiere el usuario de arriba, es que debes modificar el código donde se encuentre lo mencionado, tal vez este dentro de tu archivo single.php o sidebar.php y así modificas la estructura del theme eliminando las lineas que muestren el mensaje.


Mi archivo single.php

Insertar CODE, HTML o PHP:
<?php
/**
 * The Template for displaying all single posts.
 *
 * [MENTION=156547]pack[/MENTION]age Graphene
 * @since Graphene 1.0
 */

get_header(); ?>

	<?php
    /* Run the loop to output the posts.
     * If you want to overload this in a child theme then include a file
     * called loop-single.php and that will be used instead.
     */
	the_post();
	get_template_part('loop', 'single');
    ?>
            
<?php get_footer(); ?>


Mi archivo loop-single


Insertar CODE, HTML o PHP:
<?php 
	global $graphene_settings; 
	$post_type = get_post_type_object( get_post_type() );
?>
<?php 
/**
 * Check if the post has a post format. Load a post-format specific loop file,
 * if it has. Continue with standard loop otherwise.
*/ 
if ( function_exists( 'get_post_format' ) ) {
	global $post_format;
	$post_format = get_post_format();
	
	// Get the post formats supported by the theme
	$supported_formats = get_theme_support( 'post-formats' );
	if ( is_array( $supported_formats ) ) $supported_formats = $supported_formats[0]; 
	
	if ( in_array( $post_format, $supported_formats ) ) {
		
		// Get the post format loop file
		get_template_part( 'loop-post-formats', $post_format );
		
		// Stop this default posts loop
		return;
	}
}
?>

<?php /* Post navigation */ ?>
<?php graphene_post_nav(); ?>
        
<div id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix post' ); ?>>
	
	<?php do_action( 'graphene_before_post' ); ?>
	
	<div class="entry clearfix">
    	
        <?php /* Post date */ ?>
        <?php if ( stristr( graphene_post_date_setting( get_the_ID() ), 'icon' ) ) graphene_post_date(); ?>
		
        <?php /* Show the post author's gravatar if enabled */
		if ( $graphene_settings['show_post_avatar'] ) {
			echo '<div class="post-avatar-wrap gutter-left">' . get_avatar( get_the_author_meta( 'user_email' ), 45 ) . '</div>';
		} 
		?>
        
        <?php 
		/* Add a print button only for single pages/posts 
		 * and if the theme option is enabled.
		 */
		if ( $graphene_settings['print_button'] ) : ?>
			<?php graphene_print_button( $post_type ); ?>
		<?php endif; ?>
        
        <?php /* Add an email post icon if the WP-Email plugin is installed and activated */
			if( function_exists( 'wp_email' ) ) { echo '<p class="email wp-email-button">'; email_link(); echo '</p>'; }
		?>
        
		<?php /* Post title */ ?>
        <h1 class="post-title entry-title">
			<?php if ( get_the_title() == '' ) { _e( '(No title)', 'graphene' ); } else { the_title(); } ?>
			<?php do_action( 'graphene_post_title' ); ?>
        </h1>
		
		<?php /* Post meta */ ?>
		<div class="post-meta clearfix">
			
			<?php /* Post category, not shown if admin decides to hide it */ ?>
			<?php if ( ( $graphene_settings['hide_post_cat'] != true ) ) : ?>
			<span class="printonly"><?php _e( 'Categories:', 'graphene' ); ?> </span>
			<p class="meta_categories"><?php the_category( ", " ); ?></p>
			<?php endif; ?>
			
			<?php /* Edit post link, if user is logged in */ ?>
			<?php if ( is_user_logged_in() ) : ?>
			<p class="edit-post">
				<?php edit_post_link( sprintf( __( 'Edit %s', 'graphene' ), $post_type->labels->singular_name ), ' (', ')' ); ?>
			</p>
			<?php endif; ?>
            
            <?php /* Microdata field for "Updated" */ ?>
            <?php if ( ! graphene_should_show_date() ) : ?>
            <span class="updated"><span class="value-title" title="<?php the_time( 'Y-m-d\TH:i' ); ?>" /></span>
            <?php endif; ?>
			
			<?php /* Inline post date */ ?>
			<?php if ( graphene_post_date_setting( get_the_ID() ) == 'text' ) graphene_post_date(); ?>
			
			<?php /* Post author, not shown if admin decides to hide it */ ?>
			<?php if ( $graphene_settings['hide_post_author'] != true ) : ?>
			<p class="post-author author vcard">
				<?php
				/* translators: this is for the author byline, such as 'by John Doe' */
				$author_url = '<a href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '" class="url">' . get_the_author_meta( 'display_name' ) . '</a>';
				printf( __( 'by %s', 'graphene' ), '<span class="fn nickname">' . apply_filters( 'graphene_author_url', $author_url ) . '</span>' );
				?>
			</p>
			<?php endif; ?>
								
			<?php /* For printing: the date of the post */
			if ( $graphene_settings['print_css'] && graphene_should_show_date() ) {
				 echo graphene_print_only_text( '<em>' . get_the_time( get_option( 'date_format' ) ) . '</em>' );  
			}
			?>
			
			<?php do_action( 'graphene_post_meta' ); ?>
		</div>
		
		<?php /* Post content */ ?>
		<div class="entry-content clearfix">
			<?php do_action( 'graphene_before_post_content' ); ?>
				
			<?php /* Social sharing buttons at top of post */ ?>
			<?php if ( stripos( $graphene_settings['addthis_location'], 'top' ) !== false ) { graphene_addthis( get_the_ID() ); } ?>
				
			<?php /* The full content */ ?>
			<?php the_content(); ?>
			
			<?php wp_link_pages( array( 'before' => '<div class="link-pages"><p><strong>' . __( 'Pages:','graphene' ) . '</strong> ', 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
			
			<?php do_action( 'graphene_after_post_content' ); ?>
			
		</div>
		
		<?php /* Post footer */ ?>
		<div class="entry-footer clearfix">
			<?php /* Display the post's tags, if there is any */ ?>
			<?php if ( $graphene_settings['hide_post_tags'] != true ) : ?>
				<p class="post-tags"><?php if ( has_tag() ) { _e( 'Tags:','graphene' ); the_tags( ' ', ', ', '' ); } else { _e( 'This post has no tag','graphene' ); } ?></p>
			<?php endif; ?>
			
			<?php 
			/* Display AddThis social sharing button */
			if ( stripos( $graphene_settings['addthis_location'], 'bottom' ) !== false) { graphene_addthis( get_the_ID() ); } 
			?>
			
			<?php do_action( 'graphene_post_footer' ); ?>
		</div>
	</div>
</div>

<?php 
/**
 * Display the post author's bio in single-post page if enabled
*/
if ( $graphene_settings['show_post_author'] ) :
?>
<h4 class="author_h4 vcard"><?php _e( 'About the author', 'graphene' ); ?></h4>
<div class="author-info clearfix">
	<div <?php graphene_grid( 'author-avatar-wrap', 2, 2, 2, true ); ?>>
	<?php
	if ( $author_imgurl = get_the_author_meta( 'graphene_author_imgurl' ) ) {
		echo '<img class="avatar" src="' . $author_imgurl . '" alt="" />';
	} else {
		echo get_avatar( get_the_author_meta( 'user_email' ), graphene_grid_width( '', 2 ) ); 
	}
	?>
    </div>
	<p class="author_name"><strong><?php the_author_meta( 'display_name' ); ?></strong></p>
	<div class="author_bio"><?php echo wpautop( get_the_author_meta( 'description' ) ); ?></div>
	
</div>
<?php endif; ?>

<?php /* For printing: the permalink */
	if ( $graphene_settings['print_css'] ) {
		echo graphene_print_only_text( '<span class="printonly url"><strong>' . __( 'Permanent link to this article:', 'graphene' ) . ' </strong><span>' . get_permalink() . '</span></span>' );
	}
?>

<?php 
/**
 * Display Adsense advertising for single post pages 
 * See graphene_adsense() function in functions.php
*/ 
graphene_adsense(); ?>

<?php /* Get the comments template for single post pages */ ?>
<?php comments_template(); ?>

<?php do_action( 'graphene_loop_footer' ); ?>

Sidebar.php

Insertar CODE, HTML o PHP:
<?php
/**
 * The Sidebar for display in the content page.
 * Is only called by header.php or footer.php if the sidebar is needed, so no checking is required!
 *
 * [MENTION=156547]pack[/MENTION]age Graphene
 * @since graphene 1.0
 */
global $graphene_settings;
?>	
    
<div id="sidebar1" <?php graphene_grid( 'sidebar', 1, 5, 4 ); ?>>

	<?php do_action('graphene_before_sidebar1'); ?>

    <?php 	/* Widgetized sidebar, if supported. */
    if ( ! is_front_page() && is_active_sidebar( 'sidebar-widget-area' ) ) { // Not home, display normal sidebar if active
		dynamic_sidebar('sidebar-widget-area');
	} elseif ( is_front_page() && ! $graphene_settings['alt_home_sidebar'] && is_active_sidebar( 'sidebar-widget-area' ) ) { // Home, but alternate sidebar disabled, display normal sidebar if active
		dynamic_sidebar('sidebar-widget-area');
	} elseif ( is_front_page() && $graphene_settings['alt_home_sidebar'] && is_active_sidebar( 'home-sidebar-widget-area' ) ) { // Home, alternate sidebar enabled, display alternate sidebar if active
		dynamic_sidebar( 'home-sidebar-widget-area' );
	} else {
		
		/* Display notice to logged in users if there is no active widget in the sidebar */
		if ( current_user_can( 'edit_theme_options' ) ){
			if ( is_front_page() && $graphene_settings['alt_home_sidebar'] ){
				$sidebar_name = __( 'Front Page Sidebar Widget Area', 'graphene' );
			} else {
				$sidebar_name = __( 'Sidebar Widget Area', 'graphene' );
			}
			graphene_sidebar_notice( $sidebar_name );
		}
	} 
	?>
    
    <?php wp_meta(); ?>
    
    <?php do_action('graphene_after_sidebar1'); ?>

</div><!-- #sidebar1 -->



No consigo resolverlo a través de la estructura. ¿Alguna ayuda con qué línea cambiar?
 
Podrías mandarme el link de tu web mediante MP. Ya que no había leído bien, al parecer lo que quieres hacer mostrar solo el title y contenido.
PD, no estoy seguro pero acabo de revisar el código y al parecer debes modificar tu archivo single.

Insertar CODE, HTML o PHP:
<?php /* Show the post author's gravatar if enabled */
		if ( $graphene_settings['show_post_avatar'] ) {
			echo '<div class="post-avatar-wrap gutter-left">' . get_avatar( get_the_author_meta( 'user_email' ), 45 ) . '</div>';
		} 
		?>
 
Atrás
Arriba