Support » Themes and Templates » How to remove border on gallery images???

  • I figured out how to post full-size images using the built in gallery, but i cannot get rid of the white border around the images (see http://blog.zangenberg.net/ ). All the answers I can find only pertains to posting regular single images and has no effect on the gallery images.

    Does anyone know wich file contains the code that adds the border to the “thumbnails” in the gallery?!?

Viewing 15 replies - 1 through 15 (of 21 total)
  • #gallery-1 img {
    border:2px solid #CFCFCF;
    }

    Remove the border statement. It’s in your header file (probably header.php).

    Peter

    I searched all the header.php files, but none of them seems to contain the mentioned statement :/

    Check your gallery plugin folder and hunt the css down.

    I am sorry, but i have no gallery folder??

    I am using the standard WP gallery and a theme called “pixeled”.

    In the style.css in the pixeled folder it says:

    a img {
    border: none;
    }

    okaay was talking about a plugin. Search [webroot]/wp-content/plugins for that particular css

    Peter

    In my wp-content/plugins folder there is:

    hello.php
    index.php
    and a folder: akismet

    So no plugin that could cause this 🙂

    And in your index.php?
    Search for this:

    <style type='text/css'>
    			#gallery-1 {
    				margin: auto;
    			}
    			#gallery-1 .gallery-item {
    				float: left;
    				margin-top: 10px;
    				text-align: center;
    				width: 100%;			}
    			#gallery-1 img {
    				border: 2px solid #cfcfcf;
    			}
    			#gallery-1 .gallery-caption {
    				margin-left: 0;
    			}
    		</style>

    Peter

    If you mean the index.php in the plugin folder it only contains:

    <?php
    // Silence is golden.
    ?>

    nope, the index.php in your theme directory (sorry, should have mentioned that).

    Peter

    ..\themes\pixeled\index.php contains:

    <?php get_header(); ?>

    <div id=”main”>

    <div id=”contentwrapper”>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <div class=”topPost”>
    <h2 class=”topTitle”>“><?php the_title(); ?></h2>
    <p class=”topMeta”>af <?php the_author_posts_link(); ?> den <?php the_time(‘j F, Y’) ?>, under <?php the_category(‘, ‘); ?></p>
    <div class=”topContent”><?php the_content(‘(læs mere…)’); ?></div>
    <span class=”topComments”><?php comments_popup_link(‘Skriv en kommentar’, ‘1 Kommentar’, ‘% Kommentarer’); ?></span>
    <span class=”topTags”><?php the_tags(‘:‘, ‘, ‘, ”); ?></span>
    <span class=”topMore”>“>mere…</span>
    <div class=”cleared”></div>
    </div> <!– Closes topPost –>

    <?php endwhile; ?>

    <?php else : ?>

    <div class=”topPost”>
    <h2 class=”topTitle”>“>Intet fundet</h2>
    <div class=”topContent”><p>Desværre, men det du leder efter findes ikke. Du kan søge igen her…</p></div>
    </div> <!– Closes topPost –>

    <?php endif; ?>

    <div id=”nextprevious”>
    <div class=”alignleft”><?php posts_nav_link(”,”,’« Tidligere artikler’) ?></div>
    <div class=”alignright”><?php posts_nav_link(”,’Nyere artikler »’,”) ?></div>
    <div class=”cleared”></div>
    </div>
    </div> <!– Closes contentwrapper–>

    <?php get_sidebar(); ?>
    <div class=”cleared”></div>

    </div><!– Closes Main –>

    <?php get_footer(); ?>

    oke, next file to look in is functions.php

    Peter

    searched it for “img” “gallery” and “border”. No valid entries found 🙁

    Could it be embedded in some java file or something?

    Bummer I thought this would be an easy fix 🙁

    One thing is for sure: it has to come from somewhere. Since you don’t have any plugins, search your entire theme folder for “border: 2px solid #cfcfcf”

    Peter

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘How to remove border on gallery images???’ is closed to new replies.