Forums

WP Calendar how not to load posts to be shown on mouse hover. (3 posts)

  1. TyPowers
    Member
    Posted 12 months ago #

    Hi all.
    I'm using the default calendar widget in my blog's right sidebar. Nothing wrong with it, but since my site has 40-60 posts a day I wonder if there is a way to disable the functionality that loads the list of posts for each day.
    Functionality is nice though, since you can hover on any day and a list of the posts will pop up, but thing is, all those post titles are being appended to the output (source code) of the home page adding in my case thousands of lines (though they are not visible to the users, they increaase the output of the home page a lot.

    I know the function get_calendar() is located in wp-includes/general-template.php but I really don't dare to touch the code there.

    If any of you have tweaked it already and have some pointers on what to do, your advice will be most welcome.

    Regards and thanks in advance.

    Ty

  2. esmi
    Theme Diva & Forum Moderator
    Posted 12 months ago #

    Don't hack core code. You would better off looking for a suitable calendar plugin.

  3. TyPowers
    Member
    Posted 12 months ago #

    Howdy Esmi. Thanks for the feedback. I would do that on another site, but we are testing high performance stuff in this particular case and we are only using a few native wp widgets on the sidebar.
    The output of the home page needs to be 50 Kb or less. So you'll realize it's a very minimal design.
    So we'd like to know if we can remove that functionality from the archive calendar.
    We still want to show a calendar of posts to users but avoid increasing the size of the output of the home page.

    Regards.

    Ty

Reply

You must log in to post.

About this Topic