supreme, event calendar, link business, map

This topic contains 21 replies, has 3 voices, and was last updated by  Stiofan O’Connor 7 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #368112

    maria
    Expired Member
    Post count: 35

    I’m using supreme theme

    1. Events calendar is always loading.

    2. I linked an event to a place.
    In place page I have a tab «events».
    In event page I have «go to» in detail sidebar. Can I have this link or/and the place description in a tab? Can I change the place where the link «go to» appears?

    3. I have a CPT gd_buzz and I select * CPT to disable physical location / * Hide post type and category on map. I want to display this type gd_buzz without map / ocean map in archive & search pages – so I must have a full page without right sidebar.

    I searched in the forum and I tried

    a) CSS
    .post-type-archive-gd_buzz aside#gd-sidebar-wrapper, .search_gd_buzz aside#gd-sidebar-wrapper {
    display:none;
    }
    .post-type-archive-gd_buzz #geodir_content, .search_gd_buzz #geodir_content {
    flex-basis: 100%;
    width: 100% !important;
    }

    b) In CODE SNIPPET PLUGIN

    add_filter(‘body_class’,’gd_search_cpt_custom_body_class’);
    function gd_search_cpt_custom_body_class($classes) {
    if (isset($_GET[‘stype’]) == ‘gd_buzz’) {
    $classes[] = ‘search_gd_buzz’;
    }
    return $classes;
    }

    And it does not work! Can you help me, please?

    #368120

    Kor
    Moderator
    Post count: 16516

    Hi Maria,

    Please share WP temp admin access to your site so we can take a better look. You can post the details here using the private reply option below.

    #368128

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
    #368153

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi maria,

    We are good but not that good, we will need to know the URL of the site too 🙂

    Stiofan

    #368159

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
    #368163

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks for the info 🙂

    #1 The one in the footer? It seems to load for me?

    #2 We would need to use hooks to change the location, where would u like it?

    #3 i think flex-basis: 100% !important; is the key, try something like

    
    
    .post-type-archive-gd_buzz #geodir_content {
        width:100% !important;
    flex-basis: 100% !important;
    }
    .post-type-archive-gd_buzz #gd-sidebar-wrapper {
        display: none;
    }

    Stiofan

    #368169

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
    #368174

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    #1 seems to load ok for me, how can i replicate, what browser are u using?

    #2 not tested but somthing like this?

    
    
    add_filter('geodir_detail_page_tab_list_extend', '_my_test',10,1);
    function _my_test($arr_tabs){
    
    	global $post;
    	$post_type = geodir_get_current_posttype();
    	$all_postypes = geodir_get_posttypes();
    
    	if ( !empty( $post ) && $post_type == 'gd_event' && geodir_is_page( 'detail' ) && isset( $post->geodir_link_business ) && !empty( $post->geodir_link_business ) ) {
    		$linked_post_id = $post->geodir_link_business;
    		$linked_post_info = get_post($linked_post_id);
    		if( !empty( $linked_post_info ) ) {
    			$linked_post_type_info = in_array( $linked_post_info->post_type, $all_postypes ) ? geodir_get_posttype_info( $linked_post_info->post_type )  : array();
    			if( !empty( $linked_post_type_info ) ) {
    				$linked_post_title = !empty( $linked_post_info->post_title ) ? $linked_post_info->post_title : __( 'Listing', 'geodirevents' );
    				$linked_post_url = get_permalink($linked_post_id);
    
    					$arr_tabs['link_link" href="'.$linked_post_url.'"'] = array(
    						'heading_text'  => __( 'Testing', 'geodirectory' ),
    						'is_active_tab' => false,
    						'is_display'    => true,
    						'tab_content'   => ''
    					);
    			}
    		}
    	}
    	
    	return $arr_tabs;
    }

    Stiofan

    #368177

    maria
    Expired Member
    Post count: 35

    #1 mozilla firefox

    #368253

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    For #1 can you please provide FTP and i will debug this.

    Thanks,

    Stiofan

    #368268

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
    #368314

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    #1 details seem wrong, can you double check them please

    #3 seems to be working when i check?

    Stiofan

    #368317

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
    #368323

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    #1 fixed, (u provided wrong username)

    #3 did u add soemthing like this so u can target it on search page body class?

    
    
    
    add_filter(‘body_class’,’gd_search_cpt_custom_body_class’);
    function gd_search_cpt_custom_body_class($classes) {
    if (isset($_GET[‘stype’]) == ‘gd_buzz’) {
    $classes[] = ‘search_gd_buzz’;
    }
    return $classes;
    }

    Stiofan

    #368402

    maria
    Expired Member
    Post count: 35
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 22 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount