Cardea WP


1. How to edit Social Icons

2. Add Posts Thumbnails in Latest Posts shortcode (News Section)

3. Documentation Cardea WP

4. Set Up Video

1. How to edit Social Icons

The default code is in  Dashboard > Appearance > Customize > Footer > Footer Social Content and looks like this:

<a href="#"><span class="fa fa-twitter"></span></a>
<a href="#"><span class="fa fa-facebook"></span></a>
<a href="#"><span class="fa fa-behance"></span></a>
<a href="#"><span class="fa fa-dribbble"></span></a>

You need to change "#" with your links, so you will have, for example for twitter icon, link like this:

<a href=""><span class="fa fa-twitter"></span></a>

If you want to open it in new tab, you will use code like this:

<a href="" target="_blank"><span class="fa fa-twitter"></span></a>

Remove some of icons

If you need just lets say Twitter and Facebook, you will have code like this:

<a href=""><span class="fa fa-twitter"></span></a>
<a href=""><span class="fa fa-facebook"></span></a>

Add New Icons

If you need to add some other icons (we are using font awesome 4.7.0 version) you need to find it here:

And for example you need YouTube icon, this one:

You need to use "fa-youtube" class like this:

<a href=""><span class="fa fa-youtube"></span></a>

2. Add Posts Thumbnails in Latest Posts shortcode (News Section)

PHP part:

In functions.php add this code:

function cocobasic_latest_posts_thumbnails($atts, $content = null) {
        "class" => '',
        "num" => 5
                    ), $atts));
    global $post;
    $args = array(
        'post_type' => 'post',
        'posts_per_page' => $num
    $loop = new WP_Query($args);
    $return = '<div class="blog-holder-scode latest-posts-scode block center-relative">';
    while ($loop->have_posts()) : $loop->the_post();
        $cat = '';
        foreach ((get_the_category()) as $category) {
            $cat .= '<li><a href="' . get_category_link($category->term_id) . '">' . $category->name . '</a></li> ';
        $return .= '<article id="post-' . $post->ID . '" class="relative blog-item-holder-scode">';
         if (has_post_thumbnail()) {
            $medium_image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'medium');                        
            $return .= '<a href="' . get_permalink($post->ID) . '"><div class="latest-posts-thumbnail" style="background-image: url(' . $medium_image_url[0] . ');"></div></a>';
        $return .= '<div class="entry-date published">' . get_the_date() . '</div>
                                    <div class="cat-links">
                            ' . $cat . '                              
        $return .= '<h4 class="entry-title"><a href="' . get_permalink($post->ID) . '">' . get_the_title() . ' <span class="arrow"></span></a></h4>';
        $return .= '<div class="excerpt">' . get_the_excerpt() . '</div>';
        $return .= '</article>';
    $return .= '<div class="clear"></div></div>';
    return $return;
add_shortcode("latest_posts_thumbnails", "cocobasic_latest_posts_thumbnails");


CSS part:

In Dashboard > Appearance > Customize > Additional CSS :

.latest-posts-thumbnail {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center center;
    margin-bottom: 20px;
    transition: .3s;
.latest-posts-thumbnail:hover {
    opacity: 0.8;


Update the content:

On your "News" section, instant of using:

[latest_posts num="6"]

use the new shortcode, like this:

[latest_posts_thumbnails num="6"]


The result:

You should have this as result:


3. Documentation Cardea WP

Manual for Cardea WP

4. Set Up Video