Tagged: , ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #717009

    Hello!
    I’ve installed the WP Subtitle plugin to have another field available under the titles of the blog posts.
    I’d like that field to be displayed in the slide-meta (or at least under the title) of each article in the blog preview, where all articles are displayed.
    Please see the photo attached!

    Thank you!
    Kind regards

    P.S.
    I’m not using an enfold child theme, and I’d like not to use it for the moment being

    #717885

    Hey!

    Please go to enfold/config-templatebuilder/avia-shortcodes/postslider.php file and find

    
    $meta .= "<time class='slide-meta-time updated' $markup>" .get_the_time(get_option('date_format'), $the_id)."</time>";

    and add following right below it

    
    $meta .= "<span class='subtitle-meta'>". the_subtitle() ."</span>";

    Best regards,
    Yigit

    • This reply was modified 7 years, 11 months ago by Yigit.
    #718049

    Hi Yigit!
    I tried to modify the php file but the subtitle doesn’t appear in a proper way…

    I create a new user so, if you want, you can check (I remove for now the code that you have suggested me).

    Thank you so much for your help

    Best regards

    O.P.

    #718067

    It will be perfect if the subtitle appears under the post title…

    THANK YOU!

    Best Regards

    Opificioilgranello

    #718077

    Hi!

    Can you please post FTP logins here privately as well if you do not mind?

    Best regards,
    Yigit

    #718143

    Hi Yigit!
    Of course, here you are!

    #718582

    Hi Yigit!
    Sorry if I bother you again:
    I’ve installed the Advanced Custom Fields plugin, to have another field displaying the time reading just below the subtitle, do you think is possible to displayed this information too in the preview blog page (like the photo attached)?
    And there’s a way to center the custom fields text, that I’ve created, with css;
    in other words: how can I put an id or a class to this:

    echo get_post_meta( $the_id, ‘key’, true);

    to controll him via css?
    Thank very very much!!!

    Kind regards

    opificio

    #718606

    Hey!

    Please see private content field :)

    Best regards,
    Yigit

    • This reply was modified 7 years, 11 months ago by Yigit.
    #718896

    Thank you Yigit!!!
    You’ve done a really great work!!!
    I never use a child theme before, I will work on it today and tomorrow,
    I will to import all parent setting and hope everithing’s gonna be ok!

    Kind regards!
    Opificio

    #718898

    Hi!

    Child themes are the best when it comes to customizations :)
    You are welcome! We are always happy to help :)
    Let us know if you have any other questions or issues and enjoy the rest of your day!

    Regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘WP Subtitle displayed in the blog preview’ is closed to new replies.