Forums

Widget where the widget title calls up a page in main column? (7 posts)

  1. Lars Daniel
    Member
    Posted 1 year ago #

    I am working on this site: http://www.blog.halfdane.dk
    Is there a widget that can place just one word in the sidebar, that will act like a menu-button calling up a page? Perhaps it makes more sense if you look at the site. The sidebar is all collapsed, and I just want to add an item there that directly will call up a page in the main column.
    Or perhaps I should just add something to sidebar.php?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  3. janper
    Member
    Posted 1 year ago #

    i'm looking for somethng like that too. it would be great if it was a widget that works with qTranslate. this seems to be very essential, but it seems it can be only done by hardcoding the sidebar.
    any help would be appreciated!

  4. janper
    Member
    Posted 1 year ago #

    ok, dd page widget works for me

    if you are using qTranslate, replace the line 65 with this code
    echo '<a href="' . get_page_link($instance['page_id']) . '">' . qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($instance["title"]) . '</a>';

    good luck!

  5. Lars Daniel
    Member
    Posted 1 year ago #

    Yes, but dd page widget will show the page in the widget area, right? I need it to be shown in the main column.

  6. janper
    Member
    Posted 1 year ago #

    no, it only makes a link to the page using it's title. give it a try

  7. Lars Daniel
    Member
    Posted 1 year ago #

    Ah, I misunderstood how it works. It is perfect. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic