- This topic has 35 replies, 3 voices, and was last updated 6 years, 6 months ago by Leo.
-
AuthorPosts
-
September 15, 2017 at 8:04 pm #386304TomLead DeveloperLead 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 } ?>
September 19, 2017 at 3:07 am #387869apartamento-para-tressorry 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
September 19, 2017 at 8:03 am #388053LeoStaffCustomer SupportTry 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?
September 19, 2017 at 8:20 am #388071apartamento-para-tresI 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
September 19, 2017 at 10:28 am #388164LeoStaffCustomer SupportLooks 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
September 20, 2017 at 1:48 am #388511apartamento-para-tresI 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
September 20, 2017 at 8:09 am #388817LeoStaffCustomer SupportIt’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/
September 20, 2017 at 8:47 am #388843apartamento-para-tresYes, 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
September 20, 2017 at 10:52 am #388918LeoStaffCustomer SupportThis 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.pngThis 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.
September 21, 2017 at 4:31 am #389341apartamento-para-tresI 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 🙂
September 21, 2017 at 10:28 am #389544LeoStaffCustomer SupportYou 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?
September 22, 2017 at 2:08 am #389886apartamento-para-tresthe hover color should work as in the above video in all sections of the breadcrums with link
September 22, 2017 at 7:16 am #389985LeoStaffCustomer SupportHmm that is weird. Does adding
!important
work?September 22, 2017 at 8:08 am #390054apartamento-para-tresSorry but I don´t understand you. Where do I have to add !important?
September 22, 2017 at 11:57 am #390187LeoStaffCustomer SupportCan you try removing this?
.breadcrumbs a:visited { color: #cccccc; }
-
AuthorPosts
- You must be logged in to reply to this topic.