Tagged: x
-
AuthorPosts
-
April 4, 2016 at 12:03 pm #866248
Hi,
I have 2 questions actually.
Site is located here: http://scotianaires.ca/
I have Timely All-in-one Event Calendar.
1: I have a custom sidebar and have no idea how to set it in the event calendar pages.2. I have a custom Menu that I use for the member section and I need that to also show on the calendar pages.
Thank you.
Jonathan
April 4, 2016 at 7:15 pm #866805Hi Jonathan,
Thanks for writing in! You seem to be asking for something related to a third party plugin or script. Depending on what this takes to make it happen, it may fall beyond our scope. However, we’d like to take a look and see if we can find an easy solution.
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
April 6, 2016 at 11:59 am #869670This reply has been marked as private.April 6, 2016 at 6:02 pm #870213Hi there,
A Custom sidebar is only applicable for post types that supported by the theme. They are the post, page, x-portfolio, and other taxonomy. Since there is no way to predict other custom post types, then automatic integration of custom sidebar is not possible.
The only solution is custom coding. Though I checked your All in one event plugin, and I can’t tell how it works. Not sure what integration are needed for it. But please add this code to your child theme’s functions.php
function x_get_content_layout() { $content_layout = x_get_option( 'x_layout_content' ); if ( $content_layout != 'full-width' ) { if ( is_home() ) { $opt = x_get_option( 'x_blog_layout' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } elseif ( is_singular( 'post' ) ) { $meta = get_post_meta( get_the_ID(), '_x_post_layout', true ); $layout = ( $meta == 'on' ) ? 'full-width' : $content_layout; } elseif ( x_is_portfolio_item() ) { $layout = 'full-width'; } elseif ( x_is_portfolio() ) { $meta = get_post_meta( get_the_ID(), '_x_portfolio_layout', true ); $layout = ( $meta == 'sidebar' ) ? $content_layout : $meta; } elseif ( is_page_template( 'template-layout-content-sidebar.php' ) ) { $layout = 'content-sidebar'; } elseif ( is_page_template( 'template-layout-sidebar-content.php' ) ) { $layout = 'sidebar-content'; } elseif ( is_page_template( 'template-layout-full-width.php' ) ) { $layout = 'full-width'; } elseif ( is_archive() ) { if ( x_is_shop() || x_is_product_category() || x_is_product_tag() ) { $opt = x_get_option( 'x_woocommerce_shop_layout_content' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } else { $opt = x_get_option( 'x_archive_layout' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } } elseif ( x_is_product() ) { $layout = 'full-width'; } elseif ( x_is_bbpress() ) { $opt = x_get_option( 'x_bbpress_layout_content' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } elseif ( x_is_buddypress() ) { $opt = x_get_option( 'x_buddypress_layout_content' ); $layout = ( $opt == 'sidebar' ) ? $content_layout : $opt; } elseif ( is_404() ) { $layout = 'full-width'; } else { $layout = $content_layout; } } else { $layout = $content_layout; } if ( is_singular( 'ai1ec_event' ) ) { return 'content-sidebar'; } return $layout; } add_filter( 'ups_sidebar', 'ups_display_sidebar_event', 99 ); function ups_display_sidebar_event( $default_sidebar ) { if ( is_singular( 'ai1ec_event' ) ) { return 'ups-sidebar-member-bar-1'; } return $default_sidebar; }
Then please clear your plugin’s cache before testing.
And how do you set your custom menu? You can set your custom menu to your calendar pages the same way.
Thanks!
-
AuthorPosts