WordPress.org

Ready to get started?Download WordPress

Forums

Google Calendar Events
[resolved] gce-add-text-to-widget question (4 posts)

  1. matt6303
    Member
    Posted 1 year ago #

    I found your code for a 'gce-add-text-to-widget' plugin in another support case from last week, and applied it to my site. Works great!

    My question: I have two calendars that I am displaying on the site, but this code applies the text to all widgets regardless of which calendar. How might I make the text conditional, so that the widget displaying calendar 1 gets different text (which is a link to a page displaying the full calendar) than the widget displaying calendar 2?

    Thanks!

    http://wordpress.org/extend/plugins/google-calendar-events/

  2. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Hello,

    I tried adjusting the functionality plugin I posted before to allow this, but it was a bit messy (it required knowing the ID of each widget, which isn't simple to find).

    However, I have just updated the development version of the plugin, adding an option to the widget settings that allows you to specify some text / HTML to be displayed at the bottom of each widget.

    I did a little testing, but if you notice any bugs / problems with this, let me know.

  3. matt6303
    Member
    Posted 1 year ago #

    Ross - I just realized that I never replied to let you know that the development version is working fine on the site. Thank you for your quick response and good work!

  4. Ross Hanney
    Member
    Plugin Contributor

    Posted 1 year ago #

    Great! Thanks for reporting back.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags