• Resolved danielmasedo

    (@danielmasedo)


    Hi again! how are you? πŸ˜€
    I’m trying to show posts in a Modal PopUp when you click the post title/thumbnail/comment count. I’ve installed the WP Post PopUp plugin, but it only works on manually created links, not for posts. The plugin description says
    This plugin allows any content to be pulled into a modal window dynamically. To use, just create a link with class "modal-link".
    So , if I’m not wrong, all i need is set class=”modal-link” to default in each newly post created, thats true?
    So, how I can stablish that? thank you so much!

    EDIT: conclution, all i need is to show posts justo like wordpress plugin search page does πŸ™‚

    • This topic was modified 7 years, 6 months ago by danielmasedo.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @danielmasedo

    It better to create a child theme and add modal-link class manually in the content.php(if exiting in your theme) under title and image.

    You can also share the theme name that you are using.

    Thread Starter danielmasedo

    (@danielmasedo)

    Solved! Im not so good with code, but your comment was the trigger that I can solve my question / problem. thank you!

    in content.php

    <div class="post-thumbnail">
    			<a href="<?php the_permalink(); ?>">

    add class="modal-link" after ?>"

    <div class="post-thumbnail">
    			<a href="<?php the_permalink(); ?>" class="modal-link">

    Just do the same with div class of post-link, comment count, or anything you want add class. Now I only need to edit the post content that is showed πŸ™‚ I hope this may be helpful to other wp user, regards!

    • This reply was modified 7 years, 6 months ago by danielmasedo.
    • This reply was modified 7 years, 6 months ago by danielmasedo.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add Class to all post title’ is closed to new replies.