Forums

Read more link should popup post (4 posts)

  1. Jumoke
    Member
    Posted 9 months ago #

    I would like to popup a single post in a jquery or ajax modal window after clicking on the "Read more" link on my blog. This popup should show only the post with no headers, footers, sidebars i.e. just a box with the post. How can i achieve this. Can anyone point me to a plugin or hack for this?

  2. digibucc
    Member
    Posted 9 months ago #

    this link talks about creating a function to replace the action the read more link does

    this link talks about making a link that opens a post's content in a modal window, without header and footer, etc.

    i like the idea, and it is something i may look into in the future. these two links are exactly where i'd start.

  3. Jumoke
    Member
    Posted 9 months ago #

    Thanks digi. I followed the steps in your links until i found it's easier to do it with thickbox.

    So I installed the pluggin and put the thickbox call in my index.php underneath the `<?php the_content('Read more...'); ?>
    <a href="view-post?id=<?php the_ID(); ?>?keepThis=true&TB_iframe=true&height=650&width=550" title="" class="thickbox">Continue reading >></a>`

    now I get 2 "read more" links.
    The one I'd really like to keep is the thickbox to replace the one above. How do i make this happen so that <?php the_content(...thickbox...code..above) ?>

    Any ideas?

  4. digibucc
    Member
    Posted 9 months ago #

    i have read more turned off on my theme, though i don't remember exactly what i did to do that - sorry.

    i would look to turn off the normal one though, unless that will do both. simply googling "wordpress remove read more link" should get you somewhere.

Reply

You must log in to post.

About this Topic