Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #2142093
Coding
Closed

Comments

  •  1
    Giuliano Romano started the conversation

    Hi, i'll remove dates from post title. How can i do this?

  •  1
    Giuliano Romano replied

    Or, how can i modify Visual Composer Grid Element Templates? E.g. The Gem Basic Grid 2

  •  7,123
    Oliver replied

    Hi,

    You can remove data with this code or use it as example to changes something there:

    remove_filter( 'vc_gitem_template_attribute_post_title_with_date', 'thegem_attribute_post_title_with_date', 10, 2 );
    function thegem_attribute_post_title_with_date_new( $value, $data ) {
    extract( array_merge( array(
        'post' => null,
        'data' => ''
    ), $data ) );
        return '<div class="post-title"><h4 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">'.mysql2date('d M', $post->post_date).': <span class="light">'. get_the_title($post->ID) .'</span></a></h4></div>';
    }
    add_shortcode( 'gem_post_title_with_date', 'thegem_attribute_post_title_with_date_new' );
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  7,123
    Oliver replied

    Add this code to the functions.php of the child theme

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •  1
    Giuliano Romano replied

    Hi Gregor: many thanks for reply, but... not works :-(

    This script remove date on home page titles, but it assign EVERY title as home page title...

    I thinks it's better modify  Visual Composer Grid Element Templates? E.g. The Gem Basic Grid 2...

    How can i do this? Where are located files?

    Many thanks, Giuliano

  •  1
    Giuliano Romano replied

    Screen shot

  •  7,123
    Oliver replied

    Hi,

    May be try to use our Blog shortcode, it's much more powerful..

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver