Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter youngtheold

    (@youngtheold)

    Hi,

    Thanks for the reply.

    Currently, I’m working with one that I’ve coded. It contains very little… an empty CSS file, no Javascript, and just these lines in the index.php file.

    <?php
    
    	$args = array(
    		'sort_column' => 'menu_order'
    	);
    	$sitePages = get_pages($args);
    
    	foreach ($sitePages as $page) {
    
    		if ($page->post_name == 'contact') {
    ?>
    			<div class='booking' style='margin-top: 120px;'><?php the_content() ?></div>
    <?php
    		}
    	}
    
    ?>

    I have the shortcode [‘bookit’] on a page with the slug “contact”. From the documentation, this is the shortcode for rendering the calendar with all of the options. I’ve entered some sample categories, services and employees, but still, with my minimal theme, the plugin only renders the calendar and the headings “Choose Category” and “Booking Appointment”. As mentioned, I’ve seen it rendered correctly using the WordPress twentytwenty theme, so please, I need to know what I’m missing.

    The <div> is just so I can apply CSS to it later.

    Thanks.

    Thread Starter youngtheold

    (@youngtheold)

    Thanks, I will.

Viewing 2 replies - 1 through 2 (of 2 total)