Forums

[Plugin: Smart Archives Reloaded] How to remove link to posts? (3 posts)

  1. binaryeric
    Member
    Posted 1 year ago #

    I have attempted to do this for a few hours now... I give up.

    I love the "fancy" design of this plugin but I would like to list only the years and months, with the months being links that are actually "clickable".

    I understand that clicking on the month is supposed to cause the post list to appear, but what I would like is that the actual href associated with the month archive be loaded (as a normal link).

    I thought that if I were able to modify this section, I would be able to achieve this but I did not have any luck.

    <br />
    $('#smart-archives-fancy .year-list')<br />
    		.find('a').click(function(ev) {<br />
    			$('.pane .tabs:visible a:last').click();<br />
    		}).end()<br />
    		.find('a:last').click();<br />

    Just to clarify, my goal is to have ONLY 2 rows

    YEAR YEAR YEAR YEAR (click to display month list of that year)
    JAN FEB MAR APR... (click to load URL of that archive)

    I would greatly appreciate any help that anyone can provide.

    Thanks!
    Eric

  2. scribu
    Member
    Posted 1 year ago #

    There's an extra "menu" format that you can use instead of "fancy":

    [smart_archives format=menu]

  3. binaryeric
    Member
    Posted 1 year ago #

    Haha... wow, wish I had last night back :)

    Thanks so much! It is exactly what I wanted!!

Topic Closed

This topic has been closed to new replies.

About this Topic