-
AuthorPosts
-
November 19, 2017 at 6:52 am #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 ago by Justin.
November 22, 2017 at 4:09 am #880008Hey 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,
IsmaelNovember 22, 2017 at 4:21 am #880022Ismael…there are 2 plugins being used.
VRP Connector from GuestStream (for HOMES)
Optima Express from iHomeFinder (For Rentals)Thank you
November 22, 2017 at 6:03 am #880075Hi,
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,
IsmaelNovember 22, 2017 at 6:11 am #880079So 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 footerNone 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 6 years, 12 months ago by Justin.
November 22, 2017 at 6:23 am #880086Side 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?
November 24, 2017 at 5:00 am #881013Hi,
The plugin is utilizing the page.php file. You can enable the sidebar in the Enfold > Sidebar Settings > “Sidebar on Pages” settings.
Best regards,
IsmaelNovember 24, 2017 at 2:30 pm #881207Hey 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.November 26, 2017 at 12:46 am #881810Hi,
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,
IsmaelNovember 26, 2017 at 7:49 pm #881996Hi 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.
November 27, 2017 at 6:52 am #882112Hi,
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,
IsmaelNovember 27, 2017 at 7:08 am #882118Ismael, 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.
November 27, 2017 at 7:13 am #882119Hi Ismael, I added the code. What exactly is suppose to take place? Thank you.
Just want to be sure I understand.November 28, 2017 at 4:23 am #882490Hi,
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,
IsmaelNovember 28, 2017 at 4:33 am #882494Ismael, I had it in place before however it created problems.. time outs, error establishing database, etc.
See creds below.
Thanks!November 30, 2017 at 1:02 pm #883389Hi,
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,
IsmaelDecember 1, 2017 at 2:01 pm #883897I 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.
December 4, 2017 at 4:35 am #884503Hi,
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,
IsmaelDecember 4, 2017 at 4:55 pm #884702Thanks 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 6 years, 11 months ago by Justin.
December 5, 2017 at 2:42 pm #885076Hi,
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,
IsmaelDecember 5, 2017 at 3:40 pm #885109Perfect. Thanks!
December 6, 2017 at 4:29 am #885338SO 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 –>
December 6, 2017 at 7:34 am #885399Hi!
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,
IsmaelDecember 6, 2017 at 3:29 pm #885612Ismael … thank you.
Here is the result:.
Please log in to see it.December 7, 2017 at 5:58 am #885927Hi,
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,
IsmaelDecember 8, 2017 at 4:08 pm #886529Hey 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
December 12, 2017 at 3:04 am #887672Hi,
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,
IsmaelDecember 12, 2017 at 5:27 am #887707Hi 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.jpgYou can’t FTP due to security reasons I think.
December 12, 2017 at 4:11 pm #887989This reply has been marked as private.December 13, 2017 at 12:45 pm #888293Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.