Set Upcoming Events List "More..." Link or Header Link to Open in Same Window

To get the Heading Link or "More.." link at the bottom of your Upcoming Events List to open in the same window, you will need to have jQuery loaded on your web page.

Here are the steps to take to get the "More.." link or Header link to open in the same window.

  1. Open your web page code using your webpage editor.  If you do not already have jQuery loaded on your web page you can do so by inserting the following code into the head of your web page.

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
     
  2. Insert the javascript snippet for your upcoming events list into your webpage.  You can access this code via:
    Admin Menu > Website Plugins > Upcoming Events List
     
  3. Insert this jQuery code at the bottom of the webpage. 
    Note: do not insert the the jQuery code into the Upcoming Events List code.

    For "More..." or Bottom link:
    <script type="text/javascript">$('a[id^="cwucebottomanchor"]').attr('target','_self');</script>

    For Header link:
    <script type="text/javascript">$('a[id^="cwuceheadanchor"]').attr('target','_self');</script>
     
  4. Upload changes made to your page.  Refresh page before testing.
     


Article ID: 143
Last updated: 28 Apr, 2014
Revision: 2
Website Plugins -> Set Upcoming Events List "More..." Link or Header Link to Open in Same Window
https://www.calendarwiz.com/knowledgebase/entry/143/