Tagged: breadcrumbs, CONTACT FORM, slide
-
AuthorPosts
-
January 19, 2015 at 12:24 pm #381693
Hi,
I have some thing that don’t show ok, and I can’t fix it:
On http://www.take-ad-way.com/?page_id=17 the contact form doen’t show
On home page http://www.take-ad-way.com/ is there a way to change the word “All” in the filters of the portfolio?. We want to put “destacados” instead of “all”
In for example http://www.take-ad-way.com/?portfolio=yamaha the breadcrumbs don’t show ok
In http://www.take-ad-way.com/?page_id=22 the accordion slider doen’t show
The theme has been updated, Thanks,
Itziar
January 19, 2015 at 12:26 pm #381698Hey itziarsolla!
Please update Enfold to the latest version 3.0.4 – kriesi.at/documentation/enfold/updating-your-theme-files/
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_portfolio_sort_first_label','new_first_label'); function new_first_label() { $first_item_name = "New All Text"; return $first_item_name; }
Cheers!
YigitJanuary 19, 2015 at 12:56 pm #381730Hello,
I’ve updated! some things are ok now, but:
I’ve put
add_filter(‘avf_portfolio_sort_first_label’,’new_first_label’);
function new_first_label() {
$first_item_name = “Destacados”;
return $first_item_name;
}But it doesn’t show…
And in for example http://www.take-ad-way.com/?portfolio=yamaha the breadcrumbs don’t show ok
Thanks a lot!
Itziar
January 19, 2015 at 2:37 pm #381753Hi!
Do you mind creating a temporary admin login and posting it here privately?
Regards,
YigitJanuary 19, 2015 at 2:41 pm #381760This reply has been marked as private.January 19, 2015 at 5:43 pm #381938This reply has been marked as private.January 20, 2015 at 6:52 am #382277Hi!
You added the code inside the comment tag. Please check it now. http://www.take-ad-way.com/
Regards,
IsmaelJanuary 20, 2015 at 10:30 am #382355Thanks!
I still have problems with breadcrumbs. For example in http://www.take-ad-way.com/ if you select Sports Internet in portfolio and go to yamaha. In the breadcrumbs puts You are here: Home / Vídeos corporativos / Yamaha, and it has to be You are here: Home / Sports Internet / Yamaha…
I don’t knomw what is wrong
January 21, 2015 at 9:02 am #382898Hi!
Try to add this on functions.php:
add_action('after_setup_theme','avia_remove_portfolio_breadcrumb'); function avia_remove_portfolio_breadcrumb(){ remove_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb'); } add_filter('avia_breadcrumbs_trail', 'avia_change_breadcrumb', 5, 1); function avia_change_breadcrumb($trail) { if(is_singular('portfolio')) { global $post; $home = avia_get_option('frontpage'); $terms = get_the_terms( $post->ID, 'portfolio_entries' ); if(!empty($terms)) { $home = $trail[0]; $last = array_pop($trail); foreach($terms as $key => $data) { $link = '<a href="'.get_term_link($data).'">'.ucfirst($data->name).'</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 = array(0 => $home, 1 => $link, 'trail_end' => $last); } } return $trail; }
Best regards,
IsmaelJanuary 21, 2015 at 10:35 am #382937SOmething is worng on line 16, here
function avia_remove_portfolio_breadcrumb(){It says
Parse error: syntax error, unexpected T_FUNCTION in /usr/home/DL3qpxC3Cojs/take-ad-way.com/web/wp-content/themes/enfold-child/functions.php on line 16<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/add_filter(‘avf_portfolio_sort_first_label’,’new_first_label’);
function new_first_label() {
$first_item_name = “Destacados”;
return $first_item_name;
}add_action('after_setup_theme','avia_remove_portfolio_breadcrumb');
function avia_remove_portfolio_breadcrumb(){
remove_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb');
}add_filter('avia_breadcrumbs_trail', 'avia_change_breadcrumb', 5, 1);
function avia_change_breadcrumb($trail) {
if(is_singular('portfolio'))
{
global $post;$home = avia_get_option('frontpage');
$terms = get_the_terms( $post->ID, 'portfolio_entries' );
if(!empty($terms))
{
$home = $trail[0];
$last = array_pop($trail);foreach($terms as $key => $data)
{
$link = ''.ucfirst($data->name).'';
$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 = array(0 => $home, 1 => $link, 'trail_end' => $last);
}
}
return $trail;
}January 22, 2015 at 12:49 pm #383638Hi!
It is working fine. Please check the page now: http://www.take-ad-way.com/portfolio-item/yamaha/
Best regards,
IsmaelJanuary 22, 2015 at 2:21 pm #383680Thank you so much!
-
AuthorPosts
- The topic ‘Contact form, breadcrumbs, slide, change word "all" in filter’ is closed to new replies.