• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

How to add css icon for post info ?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › How to add css icon for post info ?

This topic is: not resolved
  • This topic has 2 replies, 3 voices, and was last updated 7 years, 8 months ago by coralseait.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 29, 2015 at 1:07 am #160827
    wparrow
    Member

    Hello
    I want add icon for post_date, post_author and post_comments as you see the code below, how to add style for it ?
    Please help me add the style define for the code below.

    Thanks

    add_filter( 'genesis_post_info', 'sp_post_info_filter' );
    function sp_post_info_filter($post_info) {
    	$post_info = '[post_date] written by [post_author_posts_link] [post_comments] [post_edit]';
    	return $post_info;
    }
    July 29, 2015 at 1:57 am #160830
    lushdolls
    Member

    I`ve the same question


    Lushdolls – London escorts

    July 29, 2015 at 6:44 pm #160909
    coralseait
    Member

    Basically follow method B code in here, but make your own class / classes and apply the styles to that - note below is for an avatar for author but the idea is the same for icon etc for whatever classes you add and style.

    http://www.carriedils.com/add-author-avatar-post-info/


    Coral Sea IT

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble