Viewing 30 posts - 1 through 30 (of 37 total)
  • Author
    Posts
  • #878711

    Hey guys,
    want to see if you can point me in the right direction being you are the developers of the theme being used for this project.

    Been working extensively on a project integrating IDX solutions for a company doing both vacation rentals and home sales.
    Rentals are using a plugin VRP Connector by Gueststream for integration of vacation rentals, and the homes for sale use iHomeFinder to pull properties into the site.

    I need some help with customizing the theme (building a page) that is unique to the property details page for both the rentals and homes.

    • This topic was modified 7 years, 1 month ago by Justin.
    #880008

    Hey Justin,

    Thank you for using Enfold.

    Please post the login details in the private field because we are not familiar with the plugin. We would like to check how the “property” pages are generated. If possible, please contact the plugin author for more info.

    Best regards,
    Ismael

    #880022

    Ismael…there are 2 plugins being used.
    VRP Connector from GuestStream (for HOMES)
    Optima Express from iHomeFinder (For Rentals)

    Thank you

    #880075

    Hi,

    I tried to modify the following page but it redirects to the “Posts” panel. How did you create the page or “property”? (see private field)

    Best regards,
    Ismael

    #880079

    So that’s like a virtual page provided by ihomefinder. It’s not an actual page. If that makes sense.

    The only way to acquire a template w a side bar is to go to the optima express plugin options. And under IDX pages there’s the option for selecting 1 of 3 template options from your theme.

    1. Default
    2. Archives
    3. Blank no header and footer

    None will really work, even with a sidebar defined in your theme settings for the archive page, and within the widget section of WordPress (adding a quick search shortcodr), it won’t work, because it ends up pulling into the vacation rental pages as well. And vacation rentals are a completely different integration.

    • This reply was modified 7 years ago by Justin.
    #880086

    Side note. All property data is being pulled through the plugins via an IDX subscription with Escapia MLS (vacation rentals) and Hawaii MLS (homes). The plugins are being used to create the composition or format / functionality of what’s being pulled in. As opposed to having to fully customize. Does that make sense?

    #881013

    Hi,

    The plugin is utilizing the page.php file. You can enable the sidebar in the Enfold > Sidebar Settings > “Sidebar on Pages” settings.

    Best regards,
    Ismael

    #881207

    Hey Ismael, that is correct. But as
    Mentioned, if I add that sidebar to a template, it pulls up on other pages that should not have a sidebar. So that’s where I gets challenging. If you look in Optima Express > IDX Pages, the one template option you have with a sidebar is ARCHIVES.

    #881810

    Hi,

    Thank you for the info. Please disable the sidebar for all pages then add the following filter in the functions.php file.

    add_filter('avia_layout_filter', 'avia_layout_filter_mod', 10, 2);
    function avia_layout_filter_mod($layout, $post_id) {
    		$class = get_body_class($class);
    		if (in_array("idxb-gallery", $class)) {
    			$layout['current'] = $layout['sidebar_right'];
    			$layout['current']['main'] = 'sidebar_right';
    		}
        return $layout;
    }

    If possible, please ask the plugin author if there are any conditional functions that we can use. I checked the documentation but I can’t find any info about it.

    Best regards,
    Ismael

    #881996

    Hi Ismael, I just want to be clear. Is your questions in reference to the Optima Express plugin? Or the VRP Connector Plugin?
    I know for the VRP Connector (which is for the VACATION RENTAL pages) … the js.js file under /vrp/js/js.js was modified by the plugin developer.
    But even that is not working that well. It’s all OFF-centered on a laptop. SO there has to be a better solution I think. They tried to override theme settings by appending JS to the file.

    I will contact the plugin developer for homes (OPTIMA EXPRESS) and ask the question you’ve asked above.

    #882112

    Hi,

    I was referring to the Optima Express plugin. Did you try the filter? It should enable the sidebar layout for the “optima” pages if the conditional function that we added is correct. That’s why I’m asking if we can use any conditional functions to detect if the page is created by the “optima” plugin.

    Best regards,
    Ismael

    #882118

    Ismael, when trying to add that code to the functions file, I get the spinning wheel followed by:

    “Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over http://FTP.”

    which i can try next.

    #882119

    Hi Ismael, I added the code. What exactly is suppose to take place? Thank you.
    Just want to be sure I understand.

    #882490

    Hi,

    It should enable the sidebar layout for the “optima” pages if the conditional function that we added is correct. That’s why I’m asking if we can use any conditional functions to detect if the page is created by the “optima” plugin.

    Have you had the chance to contact the plugin author? Please post the FTP details in the private field so that we can test it.

    Best regards,
    Ismael

    #882494

    Ismael, I had it in place before however it created problems.. time outs, error establishing database, etc.
    See creds below.
    Thanks!

    #883389

    Hi,

    The previous filter that we suggested relies on the “idxb-gallery” class attribute. I thought it’s a special class attribute from the plugin. I didn’t know that you added it manually via filter in the functions.php file. We need to know if there is an available function that we can use to detect those pages so that we can enable the sidebar.

    Best regards,
    Ismael

    #883897

    I am sure there already is Ismael.
    I know if you go to Optima > IDX Pages: https://js-interactive.com/idx1.jpg
    And then select ARCHIVES: https://js-interactive.com/idx2.jpg with a sidebar set from Enfold settings, and create a widget for the search … it will show.

    The problem is that I think there needs to be a template of its own, since the ARCHIVES page gets used in other places …. like the BLOG, and won’t look right with a HOME search to the side of it.

    Thanks. Not sure if that helps.

    #884503

    Hi,

    Create a new template and then select it from the Property Details > Theme Template. You can find a quick tutorial regarding template creation in the following link.

    // http://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/

    Best regards,
    Ismael

    #884702

    Thanks Ismael. I will take a look. Anything I need to know about your theme in particular? This custom template needs to have continuity with the rest of the site, which includes the primary theme (Enfold) that’s being used.

    • This reply was modified 7 years ago by Justin.
    #885076

    Hi,

    You can copy the template-archives.php or the page.php file. Use it as reference / boilerplate for the new “property” template so that it matches the theme’s layout or design.

    Best regards,
    Ismael

    #885109

    Perfect. Thanks!

    #885338

    SO Ismael,
    How would I go about getting a left Sidebar added to this:

    <?php /* Template Name: CustomHome */

    get_header();

    if( get_post_meta(get_the_ID(), ‘header’, true) != ‘no’) echo avia_title();

    do_action( ‘ava_after_main_title’ );
    ?>

    <div class=’container_wrap container_wrap_first main_color <?php avia_layout_class( ‘main’ ); ?>’>

    <div class=’container’>

    <main class=’template-page content <?php avia_layout_class( ‘content’ ); ?> units’ <?php avia_markup_helper(array(‘context’ => ‘content’,’post_type’=>’page’));?>>

    <?php
    /* Run the loop to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-page.php and that will be used instead.
    */

    $avia_config[‘size’] = avia_layout_class( ‘main’ , false) == ‘fullsize’ ? ‘entry_without_sidebar’ : ‘entry_with_sidebar’;
    get_template_part( ‘includes/loop’, ‘page’ );
    ?>

    <!–end content–>
    </main>

    <?php

    //get the sidebar
    $avia_config[‘currently_viewing’] = ‘page’;
    get_sidebar();

    ?>

    </div><!–end container–>

    </div><!– close default .container_wrap element –>

    #885399

    Hi!

    You can replace the “avia_layout_filter” filter in the functions.php file.

    
    add_filter('avia_layout_filter', 'avia_layout_filter_mod', 10, 2);
    function avia_layout_filter_mod($layout, $post_id) {
    		$template = get_page_template_slug($post_id);
    		if($template == 'template-name.php') {
    			$layout['current'] = $layout['sidebar_left'];
    			$layout['current']['main'] = 'sidebar_left';
    		}
    
        return $layout;
    }

    Replace “template-name.php” with the name of your template. The code checks if the current page is using the template file and then set the layout to sidebar_left.

    Regards,
    Ismael

    #885612

    Ismael … thank you.
    Here is the result:.
    Please log in to see it.

    #885927

    Hi,

    I would like to edit the template but I’m encountering an error in the Editor panel. The FTP details above are not working either. Please replace the template with the following code or post another FTP account in the private field.

    // https://pastebin.com/JaEbSw70

    Best regards,
    Ismael

    #886529

    Hey Ismael…
    I updates the template for you per your request,
    But not sure why you’re facing issues with the editor.
    See your FTP credentials below…..

    Thank you

    #887672

    Hi,

    I’m sorry for the late response. There’s nothing in the file server except for the “.ftpquota” file. Please check the FTP login details carefully. We modified the pastebin above. Please try it again.

    // https://pastebin.com/JaEbSw70

    Best regards,
    Ismael

    #887707

    Hi Ismael, no worries…
    I updated the HOME DETAIL TEMPLATE, then selected it from the IDX pages: https://kohalacoastpropertiesinc.com/one.jpg
    And the result is this: https://kohalacoastpropertiesinc.com/two.jpg

    You can’t FTP due to security reasons I think.

    #887989
    This reply has been marked as private.
    #888293

    Hi,

    I can’t edit the file in the Appearance > Editor panel. I’m sorry but I can’t help you if I can’t modify or test the template. Please hire a freelance developer or contact the plugin authors.

    Best regards,
    Ismael

Viewing 30 posts - 1 through 30 (of 37 total)
  • You must be logged in to reply to this topic.