Configuration & Setup
-
I’m sorry for contacting but my code knowledge is minimal. I wanted to know the exact code you would enter to place a google calendar countdown in a topbar.
-
Not sure I get what you mean by “topbar”. Smart Countdown FX can be added to a WordPress page or post using shortcode. If your theme supports shortcodes in other areas, e.g. “topbar” it should work the same way.
There is no need for special “code knowledge”.
Please, refine your question if you need more details.
Regards.Of course the most obvious option is to use Smart Countdown FX as a widget. Normally you can add widgets to any theme position.
Once the widget is added you will have to install and configure Google Calendar Bridge plugin. Please refer to plugin documentation for details.
Regards.I have reviewed the provided documentation on how to setup and use the plugins. Is there a step by step article I am missing? Because I don’t feel there is enough information for an average person to set up and use these widgets.
It depends on what you are trying to achieve and at what point you got stuck.
If you cannot add a plain Smart Countdown FX widget to your site sidebar have a look at Case 1 section on this page: http://smartcalc.es/wp/index.php/cookbook/
If you are able to get the widget running but cannot connect it to your Google calendar account refer to this article first: http://smartcalc.es/wp/index.php/2015/06/01/google-calendar/ – there are step by step instructions on how to prepare google calendar and setup the bridge plugin. Then read http://smartcalc.es/wp/index.php/2015/06/27/event-import-plugins-explained/ – you will find instructions on how to setup the main widget so that it automatically pulls events from Google Calendar.hi Alex,
sorry for the delay I had to take a break and try it again with a fresh perspective. I was able to add and configure both plugins to the side bar using the links provided. Thank you.
I may need some additional assistance adding the shortcode to the wp-topbar widget. I heard back from that developer and I need to add the code to the php file. I would like to have it displayed simply like the side bar but all in one line across the top bar.
Again I thank you for you help.
hi,
I have found your question: https://ww.wp.xz.cn/support/topic/shortcode-placement-location?replies=3
You can try to enter the following code:echo do_shortcode('[smartcountdown import_config=”scd_google_cal::1″ /]');I never checked it but it might work. Of course, you can add more attributes to shortcode.
Also I have noted that wp-topbar widget announces a feature: display a page in top bar. If this feature is really implemented and works correct you can create a page, add smart countdown fx shortcode according to my plugin documentation there, and then “link” this page to the top bar.
Regards, Alex
HI alex,
I was able to get the [smartcountdown deadline=”2015-01-01 00:00:00″/] code to display in the toolbar. But when I try to add my google calendar it send an error. The calendar is titled “Eve’s Schedule” does it need to be typed a specific way?
thank you for all your help.
No, calendar properties are required in Google Calendar Bridge plugin settings only. Smart Countdown FX refers to a calendar by configuration index. If you could get your google cal events imported into the countdown in sidebar (as you commented earlier) you should have used one of bridge’s configurations (normally the first one) – where you provided calendarID, API key, etc. Reread “Shortcode” section in http://smartcalc.es/wp/index.php/2015/06/01/google-calendar/ and try the attribute I posted in my previous reply.
import_config=”scd_google_cal::1″or
import_config=”scd_google_cal::2″One of these should work:)
thank you very much I was able to get it to work yesterday.
sometimes is doesnt always display properly not on the counter end but the topbar wont load properly and will over cast the menu. I think it is because the counter makes the bar too wide and it conflicts with something in the scroll feature.
Before you wrote some thing about link to a page. Is it possible to use the short code to display the event title and then link to the counter on my schedule page?
thank you
I don’t think countdown can make its container wider. Responsive feature of Smart Countdown FX works differently: it first checks container width and then adapts counter layout to the space available.
The problem may arise if topbar makes manipulations on its width on the fly after countdown has applied calculated layout. Generally, I think that topbar is not the best place for the counter. I would look for a normal theme position at the top of your page and add a Smart Countdown FX widget there. Such a standard solution is always more reliable.“Link to page” – I was not clear. I read in topbar features list that topbar can be configured to display a WP page. That’s it. So I thought that instead of adding shortcode in PHP you could create a normal page and display it in topbar using this topbar feature (I didn’t check if this feature is really implemented). This special page can be as simple as a shortcode for Smart Countdown (the same you have entered in quotes in do_shortcode() call).
What do you mean by “schedule page”? If you connect to Google Calendar using API key (public calendar) you can link event title to native Google Cal event view – it will not be your schedule page.
The topic ‘Configuration & Setup’ is closed to new replies.