Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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

    #381698

    Hey 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!
    Yigit

    #381730

    Hello,

    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

    #381753

    Hi!

    Do you mind creating a temporary admin login and posting it here privately?

    Regards,
    Yigit

    #381760
    This reply has been marked as private.
    #381938
    This reply has been marked as private.
    #382277

    Hi!

    You added the code inside the comment tag. Please check it now. http://www.take-ad-way.com/

    Regards,
    Ismael

    #382355

    Thanks!

    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

    #382898

    Hi!

    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,
    Ismael

    #382937

    SOmething 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;
    }

    #383638

    Hi!

    It is working fine. Please check the page now: http://www.take-ad-way.com/portfolio-item/yamaha/

    Best regards,
    Ismael

    #383680

    Thank you so much!

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Contact form, breadcrumbs, slide, change word "all" in filter’ is closed to new replies.