[Support request] Problem with yoast breadcrumbs

Home Forums Support [Support request] Problem with yoast breadcrumbs

Home Forums Support Problem with yoast breadcrumbs

Viewing 15 posts - 16 through 30 (of 36 total)
  • Author
    Posts
  • #386304
    Tom
    Lead Developer
    Lead Developer

    The hover CSS above is working – it’s yellow when I hover?

    As for excluding the page, you would need to wrap it in a conditional like this:

    <?php if ( ! is_page( array( 204 ) ) ) { ?>
      Breadcrumb code in here
    <?php } ?>
    #387869
    apartamento-para-tres

    sorry but I don´t control programming very much. The breadcrumbs code is:
    <?php
    if ( function_exists(‘yoast_breadcrumb’) ) {
    yoast_breadcrumb(‘

    ‘);
    }
    ?>
    and I have copied in the GP hook this:

    <?php if ( ! is_page( array( 204 ) ) ) { ?>
    if ( function_exists(‘yoast_breadcrumb’) ) {
    yoast_breadcrumb(‘

    ‘);
    <?php } ?>

    but don’t work.

    And the hover CSS should be yellow but no color is displayed.

    Thank you

    #388053
    Leo
    Staff
    Customer Support

    Try to include the <?php tags in the breadcrumb code as well. Exactly like how it was before.

    As for the color, can you link me to the page?

    #388071
    apartamento-para-tres

    I have copied in the GP hook this code

    <?php if ( ! is_page( array( 15 ) ) ) { ?>
    <?php
    if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb('
    <div class="breadcrumbs">','</div>
    ');
    }
    ?>
    <?php } ?>

    and the page with id=15 (http://apartamentoparatres.es/nuestras-creaciones/) is still linked and this page is the one that I don´t want to have link in the breadcrums.

    As the color, one example is http://apartamentoparatres.es/nuestras-creaciones/diseno-grafico/diseno-grafico-yllera/

    Thank you

    #388164
    Leo
    Staff
    Customer Support

    Looks like that page doesn’t have breadcrumb so the code is working? https://s26.postimg.org/4ykt0w9jd/2017-09-19_1025.png

    Hover color is working as well: http://www.screencast.com/t/UdXNVYq1yaz

    #388511
    apartamento-para-tres

    I want that this page (http://apartamentoparatres.es/nuetras-creaciones) does´nt have access from the breadcrumbs. When the mouse is hover on “nuestras creaciones” in the breadcrumbs, the user doesn’t´t have click.
    And the problem with the hover color is in the breadcrumbs text, not in the back button.

    Thank you

    #388817
    Leo
    Staff
    Customer Support

    It’s not working because that page is a 404 page and doesn’t have page-id-15?

    For the hover color, try this CSS:

    .breadcrumbs a:hover {
        color: #000000;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #388843
    apartamento-para-tres

    Yes, the id page is 15, so that the code I have in the gp hook is
    <?php if ( ! is_page( array( 15 ) ) ) { ?>
    <?php
    if ( function_exists(‘yoast_breadcrumb’) ) {
    yoast_breadcrumb(‘

    ‘);
    }
    ?>
    <?php } ?>
    is the code correct?
    And the page isn´t a 404 page. Is a simple page without content. The page has a custom link (#) in the menu because it’s just a hook page for other pages.

    As de color, the css code is:

    .breadcrumbs {
    background-color: black;
    padding:10px;
    margin-top:0px;
    font-size: 0.6em;
    color: white;
    }
    .breadcrumbs a:hover {
    color: #fedb00;
    }
    .breadcrumbs a:visited {
    color: #cccccc;
    }
    body.home .breadcrumbs{
    display:none;
    }

    Having this code I don´t understand why the hover does not work.

    Thank you

    #388918
    Leo
    Staff
    Customer Support

    This is page-id-15 and it doesn’t have breadcrumb so the code is working: http://apartamentoparatres.es/nuestras-creaciones/
    https://s26.postimg.org/4ykt0w9jd/2017-09-19_1025.png

    This one is currently a 404 page (I can see it in the code): http://apartamentoparatres.es/nuetras-creaciones
    Are you wanting to hide the breadcrumb as well?

    Link hover is working as yellow: http://www.screencast.com/t/NIJC0SSZoq8

    Maybe try clearing your browser cache if this is not what you are seeing.

    #389341
    apartamento-para-tres

    I want in the breadcrumbs of the rest of the pages, the text “nuestras creaciones” has no link and can not be clicked on.For example, in the page http://apartamentoparatres.es/nuestras-creaciones/diseno-grafico/ I want to not be able to click on “nuestras creaciones”

    About the color, if you go to a page like http://apartamentoparatres.es/nuestras-creaciones/packaging-y-etiquetas/packaging-victorian-beard-gin/, the hover color only work in “nuestras creaciones” which also has a strange color.

    thank you and sorry and sorry for my ignorance 🙂

    #389544
    Leo
    Staff
    Customer Support

    You would have to ask the plugin author to see how to remove the actual link.

    Hmm the hover color work for the home link like my short clip above?

    #389886
    apartamento-para-tres

    the hover color should work as in the above video in all sections of the breadcrums with link

    #389985
    Leo
    Staff
    Customer Support

    Hmm that is weird. Does adding !important work?

    #390054
    apartamento-para-tres

    Sorry but I don´t understand you. Where do I have to add !important?

    #390187
    Leo
    Staff
    Customer Support

    Can you try removing this?

    .breadcrumbs a:visited {
        color: #cccccc;
    }
Viewing 15 posts - 16 through 30 (of 36 total)
  • You must be logged in to reply to this topic.