Tagged: breadcrumbs
-
AuthorPosts
-
May 27, 2014 at 8:03 pm #270755
Hi, does the theme support breadcrumbs showing the tertiary pages? Currently, it looks like it only supports one parent page. For example, on this page http://209.216.16.228/property-neighborhoods/uphams-corner/, I would like the breadcrumbs to say ‘home / area information / property neighborhoods / uphams corner. Is this possible? Thanks!
May 27, 2014 at 10:56 pm #270865Hey blizzmarketing!
The breadcrumbs are based on your page hierarchy. So however you setup the pages within WordPress is how they will show in the breadcrumbs.
Regards,
DevinMay 27, 2014 at 11:23 pm #270885If you go to Area Information > Property Neighborhoods > Uphams Corner…it does not show the breadcrumbs all the way up to the top navigation. If I set Uphams Corner parent page to Area Information, it bypasses Property Neighborhoods in the breadcrumbs. Is there a way to show the exact path of how you get to the page?
May 28, 2014 at 4:12 pm #271212Hi!
Try to insert this code into the child theme functionsphp file or into enfold/functions.php
add_filter('avia_breadcrumbs_trail', 'avia_change_breadcrumb', 5, 1); function avia_change_breadcrumb($trail) { if(is_page()) { global $post; $front = avia_get_option('frontpage'); $blog = avia_get_option('blogpage'); if($post->ID == $blog || $post->ID == $front) return $trail; $parents = get_post_ancestors($post->ID); if(!empty($parents)) { $home = $trail[0]; $last = array_pop($trail); $trail = array(0 => $home); foreach($parents as $key => $data) { $link = '<a href="'.get_permalink($data).'">'.get_the_title($data).'</a>'; $link = preg_replace('!rel=".+?"|rel=\'.+?\'|!',"", $link); $link = str_replace('<a ', '<a rel="v:url" property="v:title" ', $link); $link = '<span typeof="v:Breadcrumb">'.$link.'</span>'; $trail[] = $link; } $trail[] = $last; } } return $trail; }
Cheers!
PeterMay 30, 2014 at 5:05 pm #272475This reply has been marked as private.May 30, 2014 at 5:06 pm #272476I also have another question for you about the CSS coloring of the tertiary dropdowns (ex: Area Information > Property Neighborhoods > Uphams Corner). Take a look at this page http://209.216.16.228/area-information/property-neighborhoods/ and then hover over Property Neighborhoods. The links under this parent page are all blue. The client would like them white until you hover over them. Could you help me with this too?
June 2, 2014 at 9:04 am #273136Hey!
1) Please create me an admin account and post the login credentials as private reply – I’ll look into it. On my test server the code added the parent page of the 3rd level, etc. to the breadcrumb and I’m not sure why it doesn’t work on your server.
2) Try to add this code to the quick css field:
#avia-menu .current-menu-item .sub-menu a { color: #ffffff; } #avia-menu .current-menu-item .sub-menu a:hover { color: #a3d8f5; }
Regards,
PeterJune 3, 2014 at 1:55 am #273651I cant change the A hover in my submenu: http://guasunchos.com/?page_id=64
Hover over “catalogos” i want the font color white.June 3, 2014 at 5:24 am #273720Hey!
@CharlieBarey: Please use this for the secondary menu hover:#top .header_color .sub_menu ul li a:hover { color: #ffffff; }
Best regards,
IsmaelJune 3, 2014 at 3:58 pm #273935Thanks!!
June 4, 2014 at 7:02 am #274392Hey!
I’ll close this thread now because of inactivity. If you still need help please create a new thread and add a link to this thread for reference.
Regards,
Peter -
AuthorPosts
- The topic ‘BreadCrumbs show tertiary pages?’ is closed to new replies.