Remove borders around all images in the hermesmag theme + remove the wording

Home Forums Theme Support Remove borders around all images in the hermesmag theme + remove the wording

  • Question status -
  • jo Antoni
    Participant

    … ”COMMENTS ARE CLOSED BUT PINGBACKS AND TRACKBACKS ARE OPEN”.

    HOPW TO DO THIS?

    Please assist asap.

    #5103
    jo Antoni
    Participant

    I am to launch a magazine, but tese two issues are bothering me.

    Also is there a way to insert a widget sidebar on the left?

    #5104
    Support Staff
    Keymaster

    Hi Jo,

    for the images change this in style.css:

    
    .hentry .thumbnail, .hentry .medium, .hentry .thumbnail, .hentry .large {
    	padding: 4px;
    	background: #f9f9f9;
    	border: 1px solid #dfdfdf;
    	}
    .entry-content img {
    	max-width: 990px;
    	padding: 4px;
    	background: #fff;
    	border: 1px solid #ddd;
    	}
    to
    
    .hentry .thumbnail, .hentry .medium, .hentry .thumbnail, .hentry .large {
    	padding: 0px;
    	border: 0;
    	}
    .entry-content img {
    	max-width: 990px;
    	padding: 0px;
    	border: 0;
    	}
    

    For the comments text message, change this in comments.php

    
    			<?php if ( pings_open() && !comments_open() ) : ?>
    
    				<p class="comments-closed pings-open">
    					<?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', hybrid_get_parent_textdomain() ), get_trackback_url() ); ?>
    				</p><!-- .comments-closed .pings-open -->
    
    			<?php elseif ( !comments_open() ) : ?>
    

    to

    
    			<?php if ( !comments_open() ) : ?>
    

    For the sidebar, I can’t find nothing except this: http://codecanyon.net/item/slick-sidebar-responsive-wordpress-plugin/7230721. You can Google for WordPress sidebar plugin, that can be toggled on and off, there might be something.

    Regards,
    Sinisa

    #5105
    jo Antoni
    Participant

    all sorted, but the comments pingbacks,trackbacks box is still there.

    Thank you so much!

    speedy answers!

    #5107
    Support Staff
    Keymaster

    If you’re trying to remove both messages (comments are closed, and comments are closed but pingbacks and trackbacks are open), you need to remove this from comments.php:

    
    			<?php if ( pings_open() && !comments_open() ) : ?>
    
    				<p class="comments-closed pings-open">
    					<?php printf( __( 'Comments are closed, but <a href="%1$s" title="Trackback URL for this post">trackbacks</a> and pingbacks are open.', hybrid_get_parent_textdomain() ), get_trackback_url() ); ?>
    				</p><!-- .comments-closed .pings-open -->
    
    			<?php elseif ( !comments_open() ) : ?>
    
    				<p class="comments-closed">
    					<?php _e( 'Comments are closed.', hybrid_get_parent_textdomain() ); ?>
    				</p><!-- .comments-closed -->
    
    			<?php endif; ?>

    However, if you want to turn off all comments, you can install plugin for that: https://wordpress.org/plugins/disable-comments/. If you want to turn comments just on particular pages, go to that page / post and under “Discussion” disable it.

    You can also remove this line from single.php or page.php:
    <?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>

    #5112

You must be logged in to reply to this topic.

Viewing 5 posts - 1 through 5 (of 5 total)