Removing "edit" from all pages, border, and images lined up.

Hi folks,

***You would need to login to the wpmudev support dashboard to see the site. It is now enabled.

1. How can we get the "edit" off of all the pages? See attached.

2. How can we get rid of the border on the curriculum page where the authors pictures are? See attached.

3. How can we, under the classroom layout, get the gallery pictures to line up (right now they are not)?

***IMAGES ARE BELOW ATTACHED (NEXT REPLY SECTION) . . .

:slight_smile:

Thanks a lot!

  • Vaughan

    Hi Greg,

    Hope you're well?

    The edit link is put there via the theme template files using the edit_post_link() function in wordpress.

    You could remove it possibly by adding the following function to your themes functions.php file.

    function wpmu_remove_edit_post_link($link) {
        return '';
    }
    add_filter('edit_post_link', 'wpmu_remove_edit_post_link');

    To remove the border on the curriculum page, add the following CSS to your theme style.css

    .ngg-imagebrowser .pic {
      border: 0 !important;
    }

    for the gallery icons, you need to set them all the same height with an auto width, as the aspect ratio is what is causing the alignment issue.

    The following CSS should sort that.

    .post-254.type-page .entry-content img {
      height: 150px !important;
    }

    If you are wishing to remove the copyright in the footer (you didn't mention this but it was circled in your screenshot.

    You can either use the following CSS, or if you wish to edit the copyright text, you will need to edit the themes footer.php

    .site-info, #footer-navigation {
      display: none;
    }

    Otherwise you can edit the theme functions.php and edit the following lines.

    function jolene_site_info() {
    	$defaults = jolene_get_defaults();
    
    ?>
    	<div class="site-info">
    		<a href="<?php echo esc_url( __( 'http://wordpress.org/', 'jolene' )); ?>"><?php printf( __( 'Proudly powered by %s', 'jolene' ), 'WordPress' ); ?></a><?php esc_html( _e( ' theme by ', 'jolene' ) ); ?><a href="<?php echo esc_url( 'http://wpblogs.ru/themes/' ); ?>">WP Blogs</a>
    	</div><!-- .site-info -->
    
    	<?php if ( get_theme_mod( 'scroll_button', $defaults['scroll_button'] ) != 'none' ) : ?>
    		<a href="#" class="scrollup <?php echo esc_attr(get_theme_mod( 'scroll_button', $defaults['scroll_button'] )).
    			esc_attr(get_theme_mod( 'scroll_animate', $defaults['scroll_animate'] ) == 'none' ? '' : ' '.get_theme_mod( 'scroll_animate', $defaults['scroll_animate'] ) ); ?>"></a>
    	<?php endif;
    }

    Just edit the following part in the above function to what you want.

    <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'jolene' )); ?>"><?php printf( __( 'Proudly powered by %s', 'jolene' ), 'WordPress' ); ?></a><?php esc_html( _e( ' theme by ', 'jolene' ) ); ?><a href="<?php echo esc_url( 'http://wpblogs.ru/themes/' ); ?>">WP Blogs</a>

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.