• Resolved Swan1305

    (@swan1305)


    Hello, disappointed to see you aren’t supporting the classic widget anymore – I’m trying to recreate my layout in a shortcode as advised. I need to remove the “posted on” text, can you advise what the correct way of doing that with a shortcode would be please? Or failing that custom css?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @swan1305,

    Well, should be pretty similar to how you did it with the classic widget. The shortcode has a post_html parameter that’s the direct equivalent of the “Post HTML Markup” field from the widget.

    For example:

    [wpp post_html='<li>{title} - {date}</li>']

    See Parameters and Content Tags for more details.

    If you have any further questions don’t hesitate to ask, ok?

    • This reply was modified 1 year, 8 months ago by Hector Cabrera. Reason: Reworded for clarity, apparently typed this in too fast
    • This reply was modified 1 year, 8 months ago by Hector Cabrera. Reason: Included links to documentation for reference
    Thread Starter Swan1305

    (@swan1305)

    Think I’ve sorted this now. Am using shortcode:
    [wpp range=’last24hours stats_views=0 cat=’-123′ thumbnail_width=105 thumbnail_height=75 limit=6 stats_date=1 stats_date=1 stats_date_format=’j F Y’ post_html=’
    {thumb} {title} <br> {date}’]

    …and the custom css code:
    .wpp-post-title {
    font-size: 15px !important;
    font-weight: 600;
    }

    Could you just tell me where/how to change the font size of the date please?

    Plugin Author Hector Cabrera

    (@hcabrera)

    I’m not near a PC now but I think the date should be wrapped in a <span> tag. Check the source code of your popular posts list to confirm. If it isn’t, wrap {date} in a <span> tag (eg. <span>{date}</span>) and then you should be able to style it as you wish via CSS.

    Thread Starter Swan1305

    (@swan1305)

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode Changes’ is closed to new replies.