Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #980255
    nickharambee
    Participant

    I would like to add metadata, to my blog entries and also to the list of articles on the parent blog page. I have tried following the instructions in this topic, and other similar topics where I should change my child theme’s functions.php file, without any success (nothing changes).

    I am using the Icon Theme if this makes a difference.

    I’d be grateful of some help asap as I need to get the blog live tomorrow.

    Thanks!

    Nick

    #980256
    nickharambee
    Participant

    Blog is here in case you need it: http://open-dialogue.net/news

    #980653
    Rue Nel
    Moderator

    Hello Nick,

    Thanks for writing in! The Post meta is already integrated in the X theme. All you have to do is to enable it in the customizer. Please go to Appearance > Customize > Blog > Content and check the setting “Post Meta” if it is turn on/off.

    Hope this helps.

    #983004
    nickharambee
    Participant

    Hi Rue,

    That setting has been enabled all along, but I only see the title of the post and the date, no author name and no avatar: http://open-dialogue.net/news/. I would like to see this on both the blog page with all entries showing and the page for each blog entry. Also I’d like to hide the icons if possible.

    Thanks,

    Nick

    #983521
    Rupok
    Member

    Hi Nick,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Also make sure to remove all customization from Child Theme related to this issue.

    Cheers!

    #983793
    nickharambee
    Participant
    This reply has been marked as private.
    #983794
    nickharambee
    Participant
    This reply has been marked as private.
    #984000
    Paul R
    Moderator

    Hi Nick,

    1. To remove icons, you can add this under Custom > Edit Global CSS in the Customizer.

    
    body .entry-title:before {
       display:none;
    }
    

    2. By default icon stack only has the title and date as seen here – http://theme.co/x/demo/icon/1/blog/

    To add the author, you can add this in your child theme’s functions.php file.

    
      function x_icon_entry_meta() {
    
           //
        // Author.
        //
    
        $author = sprintf( '<span><i class="x-icon-pencil" data-x-icon=""></i> %s</span>',
          get_the_author()
        );
        
        //
        // Date.
        //
        
        $date = sprintf( '<span><time class="entry-date" datetime="%1$s">%2$s</time></span>',
          esc_attr( get_the_date( 'c' ) ),
          esc_html( get_the_date() )
        );
    
        if ( x_does_not_need_entry_meta() ) {
          return;
        } else {
          printf( '<p class="p-meta">%1$s%2$s</p>',
            $author,
            $date
          );
        }
    
      }
    

    Hope that helps.

    #984016
    nickharambee
    Participant

    Thanks – that works, but I would like to add the avatar as well.

    Nick

    #984264
    Christian
    Moderator

    You’re welcome, Nick. Regretfully, further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.

    #984273
    nickharambee
    Participant

    Mmmh. I would have thought that having a picture of the author of an article is fairly standard on blogs, so I don’t think this is an “in depth change” that I should have to pay a developer for. Is there really nothing else you can do?

    #984693
    Darshana
    Moderator

    Hi there,

    Author information usually resides in the bottom of the posts. You can use our Author Shortcode for that (http://theme.co/x/demo/icon/1/shortcodes/author/).

    Hope that helps.

    #984869
    nickharambee
    Participant

    Thanks. I may well use this at the bottom of my blog entries, but I would also very much like an avatar of the author next to the title.

    #985385
    Christopher
    Moderator

    Hi there,

    Please add following code in Customize -> Custom -> CSS :

    h6.h-about-the-author {
        float: right;
        width: 86%;
    }

    Hope it helps.

    #985529
    nickharambee
    Participant

    Not sure how this relates to the avatar – is it even possible to have the avatar showing in the ‘About the Author’ box?

  • <script> jQuery(function($){ $("#no-reply-980255 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>