Web Pages Not Displaying Properly

Home Forums WordPress Theme CityBook – Directory & Listing WordPress Theme Web Pages Not Displaying Properly

This topic contains 106 replies, has 3 voices, and was last updated by  rockpaperclick 1 month ago.

Viewing 25 posts - 26 through 50 (of 107 total)
  • Author
    Posts
  • #22987

    rockpaperclick
    Participant

    Supported

    Also how do I go about changing the Google Maps Pin in this theme?

    #22997

    Alma Viki
    Participant

    Unknow

    Here for you: https://docs.cththemes.com/docs/citybook-settings/google-map-settings/#list_map
    Please let us know if you have other troubles.

    Thanks

    #23006

    rockpaperclick
    Participant

    Supported

    Thanks for that. Any news on the buttons that should be shown under the search bar on the homepage?

    #23012

    rockpaperclick
    Participant

    Supported

    Hi, I have added a new content widget named prospectus that does not seem to be working. Could I please have some assistance with this?

    Thanks.

    #23021

    Alma Viki
    Participant

    Unknow

    The Category list below the search you have to use Hero banner slider, please follow this guide:
    https://docs.cththemes.com/docs/homepage-layout/cth-elementors/section-banner/

    And widget named prospectus, can you send me screenshot about it? I don’t know how to find it.

    Thank you

    • This reply was modified 2 months, 2 weeks ago by  Alma Viki.
    #23027

    rockpaperclick
    Participant

    Supported

    Thanks for the tutorial. I have added the buttons but the icon that goes above the text is not displaying?

    I have added Prospectus to the ‘Content Widget’ found when you edit the listing (screenshot attached). This was done by copying the “Promo video” widget. Please see attached. The issue I am having is when I save updates to the page the updates under this section are not appearing.

    To do so I have added the following modifications:

    \wp-content\plugins\citybook-add-ons\templates\single-listing.php

    case 'prospectus':
        if ( 'yes' == get_post_meta( get_the_ID(), '_cth_content_prospectus', true ) && get_post_meta( get_the_ID(), '_cth_prospectus_url', true ) !='' ) {
            $promo_bg = get_post_meta( get_the_ID(), '_cth_promo_bg', true );
        
            if(empty( $promo_bg )){ ?>
            <div class="list-single-main-item fl-wrap" id="sec_prospectus">
                <div class="list-single-main-item-title fl-wrap">
                    <h3><?php esc_html_e( 'Prospectus', 'citybook-add-ons' ); ?></h3>
                </div>
                <div class="iframe-holder fl-wrap">
                    <div class="prospectus">
                        <?php echo wp_oembed_get(esc_url(get_post_meta(get_the_ID(), '_cth_prospectus_url', true) )); ?>
                    </div>
                </div>
            </div>
            <?php }else{ ?>
            <div class="list-single-main-media fl-wrap" id="sec_prospectus">
                <?php echo wp_get_attachment_image( key($promo_bg), 'featured', false, array('class'=>'respimg') );?>
                <a href="<?php echo esc_url( get_post_meta( get_the_ID(), '_cth_prospectus_url', true ) ); ?>" class="promo-link gradient-bg image-popup"><i class="fa fa-file-pdf"></i><span><?php esc_html_e( 'Prospectus', 'citybook-add-ons' ); ?></span></a>
            </div>
            <?php } 
        }
        // end if prospectus 
        break;
    // end prospectus

    \wp-content\plugins\citybook-add-ons\posttypes\citybook-listing.php

    <div class="col-md-3">
        <!-- act-widget--> 
        <div class="act-widget fl-wrap">
            <div class="act-widget-header">
                <h4><?php _e( '4. Prospectus', 'citybook-add-ons' );?></h4>
                <?php 
                $checked = get_post_meta( $post->ID, P_META_PREFIX.'content_prospectus', true );
                if($new_post) $checked = 'yes';
                citybook_addons_get_template_part( 'template-parts/switch', false, array( 'name'=>'content_prospectus', 'value'=> 'yes', 'checked' => $checked ) );
                ?>
            </div>
            <?php 
            citybook_addons_get_template_part( 'template-parts/images-select', false, array( 'is_single' => true, 'name'=>'promo_bg', 'datas'=> get_post_meta( $post->ID, P_META_PREFIX.'promo_bg', true ) ) );
            ?>
            <div class="add-list-media-wrap">
                <label><?php _e( 'Prospectus URL :  <i class="fa fa-file-pdf"></i>', 'citybook-add-ons' );?></label>
                <input class="has-icon" name="prospectus_url" type="text" placeholder="" value="<?php echo get_post_meta( $post->ID, P_META_PREFIX.'prospectus_url', true );?>"/>   
            </div>
        </div>
        <!-- act-widget end-->
    </div>

    \wp-content\plugins\citybook-add-ons\shortcodes\edit.php

    <div class="col-md-3">
        <!-- act-widget--> 
        <div class="act-widget fl-wrap">
            <div class="act-widget-header">
                <h4><?php _e( '4. Prospectus', 'citybook-add-ons' );?></h4>
                <?php 
                citybook_addons_get_template_part( 'template-parts/switch', false, array( 'name'=>'content_prospectus', 'value'=> 'yes', 'checked' => get_post_meta( $listing_id, '_cth_content_prospectus', true ) ) );
                ?>
            </div>
            <?php 
            citybook_addons_get_template_part( 'template-parts/images-upload', false, array( 'is_single'=>true, 'name'=>'promo_bg' ) );
            ?>
            <div class="add-list-media-wrap">
                <label><?php _e( 'Prospectus URL :  <i class="fa fa-file-pdf"></i>', 'citybook-add-ons' );?></label>
                <input class="has-icon" name="prospectus_url" type="text" placeholder="" value="<?php echo get_post_meta( $listing_id, '_cth_prospectus_url', true );?>"/>   
            </div>
        </div>
        <!-- act-widget end-->
    </div>

    \wp-content\plugins\citybook-add-ons\shortcodes\submit.php

    <div class="col-md-3">
        <!-- act-widget--> 
        <div class="act-widget fl-wrap">
            <div class="act-widget-header">
                <h4><?php _e( '4. Prospectus', 'citybook-add-ons' );?></h4>
                <?php 
                citybook_addons_get_template_part( 'template-parts/switch', false, array( 'name'=>'content_prospectus', 'value'=> 'yes', 'checked' => 'yes' ) );
                ?>
            </div>
            <?php 
            citybook_addons_get_template_part( 'template-parts/images-upload', false, array( 'is_single'=>true, 'name'=>'promo_bg' ) );
            ?>
            <div class="add-list-media-wrap">     
                <label><?php _e( 'Prospectus URL :  <i class="fa fa-file-pdf"></i>', 'citybook-add-ons' );?></label>
                <input class="has-icon" name="prospectus_url" type="text" placeholder="" value=""/>   
            </div>
        </div>
        <!-- act-widget end-->
    </div>
    Attachments:
    You must be logged in to view attached files.
    #23031

    rockpaperclick
    Participant

    Supported

    The icons above the buttons seems to be working correctly now.

    #23032

    rockpaperclick
    Participant

    Supported

    I have added new categories and deleted others and now the new ones are not showing? Would it be possible to pick and choose which categories are showing as buttons and which order?

    Many thanks,

    Costa

    #23036

    rockpaperclick
    Participant

    Supported

    On another note. I have the ‘Listing Location Type’ set to City but when I click “Get Current City” dot, it shows my country.

    #23062

    CTHthemes
    Keymaster

    Hi, you have to edit /templates/single-listing.php file for showing the widget

    #23063

    Alma Viki
    Participant

    Unknow

    Hi Costa,

    Let’s go through each points:
    1. “Get Current City” dot: It works with me http://prntscr.com/k2pkhr, What is your location?
    2. Category issues: https://docs.cththemes.com/docs/faqs/create-category/featured-images/

    Please let me know if you have other troubles.

    Thanks

    #23080

    rockpaperclick
    Participant

    Supported

    Hi CTHthemes,

    The upload for my prospectus feature now seems to be showing the file in the box but the related switch does not seem to be working. Nor is the URL field. I appreciate all the help.

    Alma, I am based in Bury St Edmunds, England.

    Many thanks,

    Costa

    #23081

    rockpaperclick
    Participant

    Supported

    I have added images to all Categories but nothing is displaying under the categories section?

    #23084

    Alma Viki
    Participant

    Unknow

    The issues with Featured Category and other, you should update theme to the newest version for fixing it.

    Thanks

    • This reply was modified 2 months, 2 weeks ago by  Alma Viki.
    #23103

    rockpaperclick
    Participant

    Supported

    Thanks for the feedback the category issue seems to have been resolved now.

    #23107

    rockpaperclick
    Participant

    Supported

    Any idea how to fix the buttons under the search bar? It is currently only showing CoEd. I would like to select which ones show like you can with categories. Many thanks.

    #23111

    rockpaperclick
    Participant

    Supported

    Please note I the thumbnails in the listings do not seem to be cropping. I checked the the theme preview on Theme Forest and the thumbnails seem to be hard cropped. Please assist.

    #23117

    rockpaperclick
    Participant

    Supported

    Please note, the Prospectus section that I added still does not seem to be working. I have checked over my work again today, the naming structure seems to be working. I have not used custom fields before myself so really could do with guidance in this area.

    #23135

    CTHthemes
    Keymaster

    You have also hook to citybook-addons-save-addfields action with listing id variable to save your Prospectus data: http://prntscr.com/k34kab

    #23149

    rockpaperclick
    Participant

    Supported

    Thanks CTHthemes, I have added content_prospectus and prospectus_url to the $meta_fields array which seems to have done the trick.

    #23151

    CTHthemes
    Keymaster

    Yes, it works. But please backup codes before updates.

    #23153

    rockpaperclick
    Participant

    Supported

    Okay, thx for the advice. I have figured out how to update the buttons under the search in Elementor. This just leaves the issue with the listing thumbnails.

    #23154

    rockpaperclick
    Participant

    Supported

    Also the location button which still only shows England for me when clicked. Thanks for all the assistance.

    #23155

    CTHthemes
    Keymaster

    Did you mean On/Off switch?
    I will fix it soon.

    #23158

    rockpaperclick
    Participant

    Supported

    No, the “Get Current City” dot discussed in Alma’s post. She says it works for her?

Viewing 25 posts - 26 through 50 (of 107 total)

You must be logged in to reply to this topic.

Hello! CityBook version 1.2.7 was released. Bulk Import Add-On, OpenStreetMapView Details
+