Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #201956

    Hi Folks – I want to do a couple of things
    1 – change the wording in the related posts area from ‘you might also like’ to Related Projects (I am using a child theme so can change template files)
    2 – currently none of my posts have featured images, so when the related posts function comes up there is a little icon of a pencil. I was wondering if there was anyway to change it to another icon? I’d like to use this one that I chose from another part of the site – see this screenshot for what I’m talking about

    http://grab.by/sYJM

    3 – is there any way to display the title underneath rather than in the rollover?

    Thanks!!

    #202060

    Hey ShortieD!

    1) Please go to wp-content\themes\enfold\includes folder and open related-posts.php file and find

    $output .= "<h5 class='related_title'>".__('You might also like', 'avia_framework')."</h5>";

    and change it
    2) Please see Peter’s post here https://kriesi.at/support/topic/changing-%E2%9C%8E/#post-123692
    3) Can you elaborate?

    Cheers!
    Yigit

    #202450

    Thanks – will give that a go.
    For question 3) I meant can we show the title of the related post. EG: if the related post is called “My Title Here” then that shows up instead of having to rollover to view the title?

    #202472

    Thanks again – your answer to my first questions worked, I actually added this to my child theme.

    I’m trying to replace the pencil icon with Charcode /UE858 – but I’m not sure how to change that in my functions.php for my child theme?

    I added this but it crashed the site

    /*
    * These are some of the font icons used in the theme, change the standard to have the same icon as the ‘about’ icon list page */

    $avia_config[‘font_icons’] = apply_filters(‘avf_default_icons’, array(

    //post formats
    ‘standard’ => array( ‘font’ =>’entypo-fontello’, ‘icon’ => ‘ue858’),

    #203113

    Hey!

    You can write over an icon with a function in your child theme like the following:

    add_filter('avf_default_icons','avia_replace_standard_icon', 10, 1);
    
    function avia_replace_standard_icon($icons)
    {
    $icons['standard']	 = array( 'font' =>'entypo-fontello', 'icon' => 'ue915');
    return $icons;
    }

    Best regards,
    Devin

    #231311

    Dear Devin,
    is it also possible to define it in the function to use an image (uploaded from the media library)?
    And how would the code look like for that?

    Kind regards!

    #231719

    Hey!

    You can add something like this on Quick CSS or custom.css.

    .related-format-icon.related-format-visible {
    background: url('http://localhost/kriesi/enfold/wp-content/uploads/2012/04/013-180x180.jpg') no-repeat 50% 50%;
    }

    Replace the image url.

    Regards,
    Ismael

    #231886

    THanks

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘change the related posts no image icon’ is closed to new replies.