Support » Plugin: Breadcrumb NavXT » No class given to breadcrumb trail to change font-size and other styles

Viewing 11 replies - 1 through 11 (of 11 total)
  • Update – I have added a class to the separator.

    But it will be nice if you add in the admin settings a class for the separator in the next version and also option for class for the whole trail – for example –

    before <div class=”breadcrumbsxt”>

    Thanks in advance.

    Plugin Author John Havlik

    (@mtekk)

    How are you calling the breadcrumb trail? If you are calling bcn_display() using the recommended code, you would be wrapping it with a div with class of breadcrumbs. If you are using the Widget it will wrap the breadcrumb trail with said div with said class. If your theme has built in support and no wrapping element, then that is a bug in the theme. Since a setting is not needed to do this, I don’t see it becoming a setting in the foreseeable future.

    My theme is responsive. How can I wrap the whole trail with a div, can you please tell.

    Thanks.

    Plugin Author John Havlik

    (@mtekk)

    Normally, you would place the following in your theme:

    <div class="breadcrumbs">
        <?php if(function_exists('bcn_display'))
        {
            bcn_display();
        }?>
    </div>

    I’m not familiar with the theme you are using, nor do I know whether or not it has built-in support for Breadcrumb NavXT. You did not answer my earlier question as to how you are calling the breadcrumb trail. Thus, it is not easy for me to assist you until I have more information.

    You did not answer my earlier question as to how you are calling the breadcrumb trail. Thus, it is not easy for me to assist you until I have more information.

    The responsive theme is using the function get_responsive_breadcrumb_lists()

    in the /wp-content/themes/responsive/core/includes/functions-extentions.php file

    to call the breadcrumb trail.

    Plugins are made so that users do not have have to do complex coding.

    But your plugin on activation, REMOVES the class of the breadcrumbs and inserts none in case of responsive theme.

    Please see these screenshots –

    1) Breadcrumb Class given in responsive theme of wordpress –
    http://postimg.org/image/7eeq9gy83/

    2) Breadcrumb class removed by Breadcrumb Navxt –
    http://postimg.org/image/6t6h77xtr/

    It seems to me that this issue should be fixed so that the responsive theme users can style their breadcrumbs easily on installing your plugin.

    Also, can you tell how the exact code and location of file from where the Breadcrumb Navxt is calling the breadcrumb trail, so that I can tag a class to it.

    Thanks.

    Plugin Author John Havlik

    (@mtekk)

    That did not really answer how you are calling the breadcrumb trail. But from it, I’m guessing you are making a call to bcn_display() but as to how you are actually hooking it into the theme, I don’t know.

    Regardless, for this theme you will need to create a wrapper function that adds in the div wrapper around bcn_display() so you can style the breadcrumb trail. This is a very specific to the theme you are using. I can see why they are doing things this way (likely an option to disable breadcrumbs). If the theme has “built in” support for Breadcrumb NavXT, then they should definitely be doing this for you.

    I happen to know someone who works for the company that made Responsive theme and will see if I can get some information on that.

    Plugin Author John Havlik

    (@mtekk)

    I’ve talked to my contact, and opened an idea on cyberchimps’ idea site, see: https://cyberchimps.uservoice.com/forums/197918-ideas/suggestions/6324483-add-html-wrapper-for-breadcrumb-navxt-in-responsiv

    John,

    Thanks for your response. And thanks for requesting the cyberchimps people to add support for your plugin.

    I am a newbie in php. So, you may find my posts having simple language only.

    The responsive theme guys do not respond to any php queries made by free users. I had asked them how to change the Home breadcrumb text and they just replied, use a plugin.

    That lead me to using your plugin. But as I pointed out, that without your plugin installed, there is a class given to the breadcrumb trail. And when the breadcrumb Navxt is installed, there is no class.

    It is good you asked the cyberchimp guys. They might respond to you since you are a plugin author.

    Please let me know their response and let me know best way to install a class to the breadcrumb Navxt trail in the responsive theme.

    Plugin Author John Havlik

    (@mtekk)

    It sounds like they will add in the required surrounding HTML tags to group the breadcrumbs in a future release (at least that was what I was told).

    O.k. Thanks, John.

    Closing the thread for now.

    Ulrich

    (@grapplerulrich)

    Hi, I am from CyberChimps. We have made the change and the wrapper is included in version 1.9.7.2 which will be released in a few days.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘No class given to breadcrumb trail to change font-size and other styles’ is closed to new replies.