WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumb NavXT
CSS problems (7 posts)

  1. bustel
    Member
    Posted 6 months ago #

    I want to change the background color just for the breadcrumb, I set the follow code in my style.css:

    .breadcrumb{
    background-color:#FFFF19;
    }

    In the header.php:
    <div class="breadcrumb">
    <?php if(function_exists('bcn_display'))
    {
    bcn_display();
    }?>
    </div>

    It just don't work... Can someone help me please?

    http://wordpress.org/plugins/breadcrumb-navxt/

  2. Jos.SnchZ
    Member
    Posted 6 months ago #

    Hi,
    http://mtekk.us/code/breadcrumb-navxt/breadcrumb-navxt-doc/3/#css_style

    It seems the applied class is "breadcrumbs".

    Regards !

  3. bustel
    Member
    Posted 6 months ago #

    okéy, i set breadcrumb to breadcrumbs... but it's the same thing, it doesn't work...

    so in the style.css:
    .breadcrumbs {
    background-color:#FFFF19;
    }
    and in the header.php:
    <div class="breadcrumbs">
    <?php if(function_exists('bcn_display'))
    {
    bcn_display();
    }?>
    </div>

  4. Jos.SnchZ
    Member
    Posted 6 months ago #

    Hey, i've tried the plugin in a clean WordPress install and it's working fine like u mentioned it. Try setting the element's display to block , maybe there's a conflict with another css rule.

    Anyway, is your code inside the <body> or <header> tags?

    Regards

  5. bustel
    Member
    Posted 6 months ago #

    yes, it's under the <body> in header.php file

    and its above <div id="main">

    If I change the name of breadcrumbs to another word... it's the same problem... I don't know what the problem is... Can you help me please?

    thanks!

  6. Jos.SnchZ
    Member
    Posted 6 months ago #

    Well .. I think it's not the proper way but u could try doing it like this :

    <div class="breadcrumb" style="background: #FFFF19; display: block; float: left; clear: both; height: auto; width: auto; min-width: 0; padding: .5em 1em; overflow: hidden">
    	<?php (function_exists('bcn_display') ? bcn_display() : false ); ?>
    </div>
  7. bustel
    Member
    Posted 6 months ago #

    great it's working! thanks!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.