• Resolved sammishra

    (@sammishra)


    I have installed the 'Add to calendar button' plugin for my site, i have just installed and have not made any settings or any of such kind, there was only one option visible under 'Add to calendar' menu in my wordpress that is 'Load script unstyled'. And later to display the calendar in my site i have used a shortcode, which i got from your documentation site. The code i have used is 
    
    ? ? ?<add-to-calendar-button
    
    ? name="[Reminder] Test the Add to Calendar Button"
    
    ? startDate="2024-03-29"
    
    ? startTime="10:15"
    
    ? endTime="23:30"
    
    ? timeZone="America/Los_Angeles"
    
    ? description="Check out the maybe easiest way to include Add to Calendar Buttons to your web projects:[br]→ [url]https://add-to-calendar-button.com/|Click here![/url]"
    
    ? options="Google"
    
    ? lightMode="bodyScheme"
    
    ></add-to-calendar-button>
    
    But nothing is displaying in my site. can u please help me with this
    

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Add to Calendar

    (@add2cal)

    You mayb not use characters [ and ] with the plugin as they are reserved for the WP Shortcode in general.

    For pseudo html tags, you can use curly brackets instead.

    Thread Starter sammishra

    (@sammishra)

    Thank you for your response. It would be very helpful if you can give me an example to show how it is implemented.

    Plugin Author Add to Calendar

    (@add2cal)

    Basically, for a Shortcode, you would write something like:

    [add-to-calendar-button name=”abc” start date=”2024-04-03″ /]

    That’s the bare minimum. All other parameters work accordingly.

    Plugin Author Add to Calendar

    (@add2cal)

    Thread Starter sammishra

    (@sammishra)

    <?php echo do_shortcode(‘[add-to-calendar-button name=”Title” options=”‘Apple’,’Google'” startDate=”2024-03-23″]’); ?> i tried this code as well but it is not working. Is there anything in particular that need to configured to enable this.

    Plugin Author Add to Calendar

    (@add2cal)

    When using it that way, you are breaking your code with the single quotes in both, the wrapper code and the options parameter. You would need to change this.

    Or you use the native implementation with the <add-to-calendar-button /> Tag. For this, your initial code looks fine. Make sure it is rendered this way at the HTML layer.

    Add the debug option to get hints about what is not working.

    Plugin Author Add to Calendar

    (@add2cal)

    Or use the Block or regular short code flow (inside a page/post, not PHP source code).

    Thread Starter sammishra

    (@sammishra)

    Is there any specific settings that need to be made once the plugin is installed, or is there any code that need to be written in functions.php to enable this.

    Thread Starter sammishra

    (@sammishra)

    Can you give me an example for writing block codes within post.

    Plugin Author Add to Calendar

    (@add2cal)

    No. It comes with batteries included.

    You can use the native style in your php files.

    Or the Shortcode or Gutenberg Block in the editor.

    As said, the debug option helps a lot. But mind the usual tech pitfalls like too early closing of statements.

    Plugin Author Add to Calendar

    (@add2cal)

    And for the example: It is all documented at the linked page.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Add To calendar button plugin is not working’ is closed to new replies.