Forum Replies Created

Viewing 40 posts - 1 through 40 (of 40 total)
  • Author
  • in reply to: Create shortcode #93160
     Matthias
    Participant

    Thank you very much for your help.
    I have this which still creates an error:

    COPY CODE
    function follow_shortcode() {
    
    $output = "<div class="um-followers-user-btn">
    		
    			if ( $user_id1 == get_current_user_id() ) {
    				echo '<a href="' . um_edit_profile_url() . '" class="um-follow-edit um-button um-alt">' . __('Edit profile','um-followers') . '</a>';
    			} else {
    				echo $um_followers->api->follow_button( $user_id1, get_current_user_id() );
    			}
    			
    </div>";
    
    echo $output;
    }
    add_shortcode( 'followBtn', 'follow_shortcode' );

    I followed what you said but it’s not working … Where did I go wrong ? Thanks for your help

    in reply to: Change posts title tag #91134
     Matthias
    Participant

    Actually, I’d like to have:

    “Name of the post | Sub category of the post”. How could I do this ?

    Thanks

     Matthias
    Participant

    Thanks for your answer. However, on the Kleo post element, there is the author name, date, comments etc displayed below the featured image, not with the shortcode you gave me. How can I have the same elements as with the Kleo post element, but not in Masonry ?

    I need the featured image, with below the title of the post, the author, the date, the comments.

    Thanks

    in reply to: Add post views to meta and display it in kleo post #88314
     Matthias
    Participant

    Thanks but I’m not only talking of the post views plugin, but also about the regular author key, and comments key that is used for the kleo post visual composer element for example.

    in reply to: Add post views to meta and display it in kleo post #87658
     Matthias
    Participant

    Thanks for your help, however this doesn’t exactly answer my questions.

    In the visual composer settings, in grid elements, I’m customizing a grid element (see attached). I can add custom fields, but I need the meta keys field name for: author name, comments, likes (see attached). Where can I find this ?

    Thanks

    Attachments:
    You must be logged in to view attached files.
    in reply to: Add post views to meta and display it in kleo post #86751
     Matthias
    Participant

    Hi,

    I use this code that you have me above:

    COPY CODE
    if ( ! function_exists( 'kleo_entry_meta' ) ) :
        /**
         * Prints HTML with meta information for current post: categories, tags, permalink, author, and date.
         * Create your own kleo_entry_meta() to override in a child theme.
         * @since 1.0
         */
        function kleo_entry_meta( $echo = true, $att = array() ) {
    
            global $kleo_config;
            $meta_list = array();
            $author_links = '';
            $meta_elements =  sq_option( 'blog_meta_elements', $kleo_config['blog_meta_defaults'] );
    
            // Translators: used between list items, there is a space after the comma.
            if ( in_array( 'categories', $meta_elements ) ) {
                $categories_list = get_the_category_list(__(', ', 'kleo_framework'));
            }
    
            // Translators: used between list items, there is a space after the comma.
            if ( in_array('tags', $meta_elements ) ) {
                $tag_list = get_the_tag_list('', __(', ', 'kleo_framework'));
            }
    
            $date = sprintf( '<a href="%1$s" rel="bookmark" class="post-time" rel="nofollow">' .
                '<time class="entry-date" datetime="%2$s">%3$s</time>' .
                '<time class="modify-date hide hidden updated" datetime="%4$s">%5$s</time>' .
                '</a>',
                esc_url( get_permalink() ),
                esc_attr( get_the_date( 'c' ) ),
                esc_html( get_the_date() ),
                esc_html( get_the_modified_date( 'c' ) ),
                esc_html( get_the_modified_date() )
            );
    
            if ( is_array( $meta_elements ) && !empty( $meta_elements ) ) {
    
                if ( in_array( 'author_link', $meta_elements ) || in_array( 'avatar', $meta_elements ) ) {
    
                    /* If buddypress is active then create a link to Buddypress profile instead */
                    if (function_exists( 'bp_is_active' ) ) {
                        $author_link = esc_url( bp_core_get_userlink( get_the_author_meta( 'ID' ), $no_anchor = false, $just_link = true ) );
                        $author_title = esc_attr( sprintf( __( 'View %s\'s profile', 'kleo_framework' ), get_the_author() ) );
                    } else {
                        $author_link = esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) );
                        $author_title = esc_attr( sprintf( __( 'View all POSTS by %s', 'kleo_framework' ), get_the_author() ) );
                    }
    
                    $author = sprintf( '<a class="url fn n" href="%1$s" title="%2$s" rel="author" rel="nofollow">%3$s %4$s</a>',
                        $author_link,
                        $author_title,
                        in_array( 'avatar', $meta_elements ) ? get_avatar( get_the_author_meta( 'ID' ), 50) : '',
                        in_array( 'author_link', $meta_elements ) ? '<span class="author-name">' . get_the_author() . '</span>' : ''
                    );
    
                    $meta_list[] = '<small class="meta-author author vcard">' . $author . '</small>';
                }
    
                if ( function_exists( 'bp_is_active' ) ) {
                    if ( in_array( 'profile', $meta_elements ) ) {
                        $author_links .= '<a href="' . bp_core_get_userlink( get_the_author_meta( 'ID' ), $no_anchor = false, $just_link = true ) . '" rel="nofollow">' .
                            '<i class="icon-user-1 hover-tip" ' .
                            'data-original-title="' . esc_attr(sprintf(__('View profile', 'kleo_framework'), get_the_author())) . '"' .
                            'data-toggle="tooltip"' .
                            'data-placement="top"></i>' .
                            '</a>';
                    }
    
                    if ( bp_is_active( 'messages' ) ) {
                        if ( in_array( 'message', $meta_elements ) ) {
                            $author_links .= '<a href="' . wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . bp_core_get_username( get_the_author_meta( 'ID' ) ) ) . '" rel="nofollow">' .
                                '<i class="icon-mail hover-tip" ' .
                                'data-original-title="' . esc_attr(sprintf(__('Contact %s', 'kleo_framework'), get_the_author())) . '" ' .
                                'data-toggle="tooltip" ' .
                                'data-placement="top"></i>' .
                                '</a>';
                        }
                    }
                }
    
                if ( in_array( 'archive', $meta_elements ) ) {
                    $author_links .= '<a href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '" rel="nofollow">' .
                        '<i class="icon-docs hover-tip" ' .
                        'data-original-title="' . esc_attr(sprintf(__('View all posts by %s', 'kleo_framework'), get_the_author())) . '" ' .
                        'data-toggle="tooltip" ' .
                        'data-placement="top"></i>' .
                        '</a>';
                }
    
            }
    
            if ( $author_links != '' ) {
                $meta_list[] = '<small class="meta-links">' . $author_links . '</small>';
            }
    
            if (in_array( 'date', $meta_elements ) ) {
                $meta_list[] = '<small>' . $date . '</small>';
            }
    
            $cat_tag = array();
    
            if ( isset( $categories_list ) && $categories_list ) {
                $cat_tag[] = $categories_list;
            }
    
            if ( isset( $tag_list ) && $tag_list ) {
                $cat_tag[] = $tag_list;
            }
            if (!empty($cat_tag)) {
                $meta_list[] = '<small class="meta-category">'.implode(", ",$cat_tag).'</small>';
            }
    
            //comments
            if ((!isset($att['comments']) || (isset($att['comments']) && $att['comments'] !== false)) && in_array( 'comments', $meta_elements )) {
                $meta_list[] = '<small class="meta-comment-count"><a href="'. get_permalink().'#comments" rel="nofollow">'.get_comments_number() .
                    ' <i class="icon-chat-1 hover-tip" ' .
                    'data-original-title="'.sprintf( _n( 'This article has one comment', 'This article has %1$s comments', get_comments_number(), 'kleo_framework' ),number_format_i18n( get_comments_number() ) ).'" ' .
                    'data-toggle="tooltip" ' .
                    'data-placement="top"></i>' .
                    '</a></small>';
            }
    
            $meta_separator = isset( $att['separator'] ) ? $att['separator'] : sq_option( 'blog_meta_sep', ', ') ;
    
            if ( $echo ) {
                echo implode( $meta_separator, $meta_list );
            }
            else {
                return implode( $meta_separator, $meta_list );
            }
    
          if ( 'post' == get_post_type() ) {
            // Add third plugin to show post view
            echo ' ';
            echo do_shortcode('<small>[favorite_count post_id=""]</small>');
            echo '<small><i class="fa fa-heart"></i></small>';
    
        }
        }
    
    endif;
    

    The last if statement adds the number of favorites to the meta. However, I need the meta key of the favorites, how can I find it ?

    Thanks

    in reply to: Disable display animation #86750
     Matthias
    Participant

    Hi,

    this code works best:

    COPY CODE
    body.page-id-7247.kleo-transform .one-by-one-animated .start-animation .el-appear, body.page-id-7247.kleo-transform .kleo-thumbs-animated.th-appear img.start-animation, .kleo-transform .start-animation.el-appear {
        -webkit-animation: none;
        -o-animation: none;
        animation: none;
        opacity: 1;
        -moz-transform: none;
        -webkit-transform: none;
        -o-transform: none;
        transform: none;
    }

    Also, for the “Post Grid” visual composer element (http://ouiaremakers.com/tutoriels/) how can I disable the animation and change the color of the read more button for each post (the read more button, here “Lire plus”) ?

    Thanks for your help Radu

    in reply to: Add post views to meta and display it in kleo post #83366
     Matthias
    Participant

    I found an answer, I used if ( ‘post’ == get_post_type() )

     Matthias
    Participant

    I have the same issue with portfolio items so it’s probably not because of the custom post type … Any other idea ?

    in reply to: Add post views to meta and display it in kleo post #83363
     Matthias
    Participant

    Hi,

    Everything works fine, thanks for your code !
    How can I hide the echo do_shortcode(‘[post-views]’); for my custom post type “blog” ?

    Thanks

     Matthias
    Participant

    Everything is activated as in your screenshot in the kleo post settings …

     Matthias
    Participant

    Hi,

    The page is here: http://ouiaremakers.com/blog

    in reply to: Add post views to meta and display it in kleo post #82253
     Matthias
    Participant

    I can’t login I think I’ve been locked out. Can you please login and turn on maintenance mode ??

    in reply to: Add post views to meta and display it in kleo post #82251
     Matthias
    Participant

    Hi,

    I’m having a big issue right now. I updated to kleo 3.0.10 but most of my post pictures were missing so I wanted to go back to my previous version. I had a backup so I copied the whole Kleo folder from the backup and pasted it via ftp to the theme folder. I don’t know how to fix this could you help me ???

    in reply to: Add post views to meta and display it in kleo post #82210
     Matthias
    Participant
    This reply has been set as private.
     Matthias
    Participant

    Thanks for your answer.
    Could you please tell me which sizes are necessary for the theme ? I use the masonry layout to display posts (see attached). I found one added size in functions.php, in which file can I fond the others ?
    Thanks

    Attachments:
    You must be logged in to view attached files.
     Matthias
    Participant

    Forgot the attachement

    Attachments:
    You must be logged in to view attached files.
    in reply to: Replace author name by its iD on post #78663
     Matthias
    Participant

    Thanks for your answer.
    I found how to do it manually but how can I make it automatically ?

    in reply to: Page elements for logged out users only #78015
     Matthias
    Participant

    Works fine thanks !
    And how can I get the css of a kleo button I customized (color, rounded or not etc)?

    in reply to: Add author's name and avatar in post's sidebar #77961
     Matthias
    Participant

    Precisely ! thank you very much

    in reply to: Reduce vertical space between items #76873
     Matthias
    Participant

    Works perfectly thanks

    in reply to: Reduce vertical space between items #76476
     Matthias
    Participant

    Hi,

    the url is

    http://ouiaremakers.com

    Thanks for your help

    in reply to: Theme blocking form sending (formidable) #73406
     Matthias
    Participant

    Thanks for your answer and help Andrei.
    Yes of course you can switch to default theme

    in reply to: Theme blocking form sending (formidable) #73230
     Matthias
    Participant
    This reply has been set as private.
    in reply to: Deactivate Animation for Kleo Posts #72521
     Matthias
    Participant

    Works fine thanks

    in reply to: Deactivate Animation for Kleo Posts #72467
     Matthias
    Participant

    Hi

    thanks for your answer. Yes I only want to stop it for the homepage. What should I do ?

    in reply to: Lot of menu items not well displayed in mega menu #72347
     Matthias
    Participant

    Hi !

    thanks for your answer but I’m not asking if I have the good amount of menu items, but how can I fit all these items in my menu. Are there other layouts ?

     Matthias
    Participant

    Found my answer

     Matthias
    Participant

    I didn’t know how to do it, thanks it worked

     Matthias
    Participant

    On my homepage (http://ouiaremakers.com) there are 6 pages displayed, 3 by row. In visual composer I chose “Kleo Posts” and then defined it so it only displays these particular pages with their picture. As you can see under each picture is the title of each page, with “, 13 juin 2015, 0 *comments icon*”

    I’m trying to delete the “, 13 juin 2015, 0 *comments icon*”

     Matthias
    Participant

    Thanks for your help

    in reply to: Profile fields not appearing in BuddyPress settings #68164
     Matthias
    Participant

    Well I’ve read the doc and probably found what I was looking for (see attached, it says “Fields can be arranged into groups and you can define your own groups to show in user profile edit page.”) but after going to:

    – theme options ->BuddyPress
    – Settings ->BuddyPress
    – tools ->BuddyPress

    I can’t find anywhere the “user profile edit page”. So believe me, I searched for it, but obviously not at the right place

    Attachments:
    You must be logged in to view attached files.
    in reply to: Profile fields not appearing in BuddyPress settings #68153
     Matthias
    Participant

    Oh ok ! Thanks for the explanation !

    So I have two questions: how can I modify (add or delete) the different sections displayed on the profile like “sites”, “friends”, “forums, “media” etc ?

    And how can I modify (add or delete) the fields for each of the items mentioned above ? (for example, in activity there is “personal”, “mentions”, “favorites” etc, I’d like to delete some of these)

    in reply to: Accordion opened when loading the page #67717
     Matthias
    Participant

    Also, on the same page, how can I change the color of the title “Portes de Garage” ? I can’t see it in the parameters

    in reply to: Delete sidebar on certain pages #67401
     Matthias
    Participant

    Thanks I found it in the themes options in layout.

    It worked for the author name and likes, but could I also hide the date, read more, and center the title of each page ?

    Also, I’d like to delete the page “sub header” which has the name of the page and “feel free to call us +91.33.26789234 youremail@yourdomain.com” , how can I do this ?

    Thanks for your help Sharmstr, you are very helpful

    in reply to: Favorite button in posts #67269
     Matthias
    Participant

    I can’t favorite an article and have it on my profile ? That should be possible for a blogging platform …

    I mean: can I choose the fields available to users on the extended profiles ?

    in reply to: "My Profile" next to profile picture in menu #64365
     Matthias
    Participant

    Last question: how can I move the profile picture to the right of the “My Profile” text ?

    Attachments:
    You must be logged in to view attached files.
    in reply to: "My Profile" next to profile picture in menu #64362
     Matthias
    Participant

    It worked with your help

    Thanks !!

    Attachments:
    You must be logged in to view attached files.
    in reply to: How to center a button #63942
     Matthias
    Participant
    This reply has been set as private.
    in reply to: How to center a button #62955
     Matthias
    Participant

    Hey !

    No there isn’t any option to align it. I tried to add 3 rows, but it still places it on the far left of the central raw which is not centered.

    Is there another way ?

    thanks for your help

Viewing 40 posts - 1 through 40 (of 40 total)

Log in with your credentials

Forgot your details?