How can I have two event description widgets?

  1. Home
  2. Docs
  3. Fudge
  4. Frequently Asked Question...
  5. How can I have two event description widgets?

How can I have two event description widgets?

Please do not forget to keep a back-up of the files prior to any changes.

 

1) copy wp-content/themes/fudge/functions/widget-event-description.php and rename the file (say widget-event-description2.php).

2) Replace all occurrences of ‘event_description’ to ‘event_description2’

3) Replace all occurrences of ‘eventdescriptiontitle’ to ‘eventdescriptiontitle2’

4) Replace all occurrences of ‘eventdescriptioncontent’ to ‘eventdescriptioncontent2’

5) Replace all occurrences of ‘eventdescriptionmenu’ to ‘eventdescriptionmenu2’

6) Change the widget name ‘Fudge Event Description’. Here say ‘Fudge Event Description2’

7) Change ‘event-description’ to ‘event-description2’.

8) Save the file.

9) Open wp-content/themes/fudge/functions.php

10) Find the following code (around line number 964)

include_once(‘functions/widget-event-description.php’);

11) Add the following code below the line.

include_once(‘functions/widget-event-description2.php’);

In the widget section, you can see a new widget named ‘Fudge Event Description2’.

Was this article helpful to you? Yes 1 No