Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi!
I’m working on releasing a video tutorial today to explain in more details the usage of the custom field selector boxes, which is probably what you are looking for.
Until then, here is a quick guide:
1. To create such complex forms, first of all you will have to create and use custom fields. If you are not familiar with them, you can read more in the wordpress codex.
In very short: Custom fields are basically data fields attached to a post or page or a custom post type (like a product, or forum topic). Each and every custom field has a name and a value. The article I linked above will explain how you can create such custom fields.
2. Once you understand how custom fields work, and you maybe created a few for testing, then you can proceed to create the search fields as seen on the TV search demo. There is a chapter in the documentation you should read through, which explains fully how you can create these fields: https://wpdreams.gitbooks.io/ajax-search-pro-documentation/content/frontend_search_settings/custom_field_selectors.html
The basic concept of this is, that you can create various items (radio buttons, checkboxes, sliding bars) for any selected custom field.
Let’s take the TV size slider as an example:
– First I created all the TV products I wanted.
– Then I opened the first one an added a custom field called “tv_screen_size” and as the value I entered 50. Screenshot.
– I repeated this process for each and every TV product I created. The screen sizes were different for some of them of course.
– Then when I was done entering the fields, I created the range slider on the search options page as following: https://i.imgur.com/w6VS65I.png
– Hit the blue SAVE button on the editor, then the Save All tabs button.
– The range slider should be now visible on the front end.To add more and more different selectors, just repeat this process.
Ernest Marcinko
KeymasterHi!
This is only possible by either editing the corresponding result template or creating a filter function to modify the results content. Either way you will definitely need to do some programming to parse the information you need (phone number, area, email, etc..), and it also depends on how this information is stored. (part of the content, custom fields or something else).
Here are some guides you can use:- Results Templating
- Filter example: Changing results url to something else
- Filter example: Showing the category titles in result titles
For the “See more information” text you should probably use the ‘ Show more results..’ text and the ‘ Show more results..’ url option on the Layout Options -> Results layout panel.
Ernest Marcinko
KeymasterYou are welcome.
In that case I rather recommend putting the shortcode just before the closing body tag in the footer, then configuring the compact search box layout settings. That way the search is in a fixed position, and the footer placement is the safest.
Ernest Marcinko
KeymasterHi!
Based on the header file I would try the following:
1. Place the search shortcode after line 107, after the navigation:
[php] </nav><!– #kids_main_nav –>
<?php echo do_shortcode(‘[wpdreams_ajaxsearchpro_results id=1 element="div"]’); ?>
</div><!–/ .l-page-width–>[/php]
2. Reduce the width of the box to 190 pixels, because it won’t fit there. On the search back-end Theme Options -> Overall Box Layout panel, first option.
3. With a custom CSS code, adding floating right property to the search container to position next to the menu:
[code].asp_main_container {
float: right;
}[/code]This will put the search box most likely to the left, as the menu floats to the right sooner. If you want to switch the position of the menu and the search, then try this custom CSS code to float the menu to the left side:
[code]nav#kids_main_nav {
float: left !important;
}[/code]This is just a quick suggestion, the final solution might need a bit more CSS code 🙂
-
This reply was modified 10 years, 8 months ago by
Ernest Marcinko.
Ernest Marcinko
KeymasterHi!
Thank you, now it’s working fine 🙂
I’ve found the difference. The homepage search had the Category/Term logic set to “OR” (General Options -> Behavior panel). That forced the search to return elements only if they are at least in one of the selected categories or terms. I’ve changed it back to the default “AND” option, now it should work just like the widget.
Ernest Marcinko
KeymasterHi!
Yes, I got the details and I can log in with both, but I cannot access the Ajax Search Pro submenu on the administrato area: http://i.imgur.com/U3HRQHc.png
Also, on the FTP I can log-in, but only an empty folder is accessible like so: http://i.imgur.com/vEl6SJv.png
I’m guessing some permissions are perhaps missing 🙂
Ernest Marcinko
KeymasterLooking at the front-end the search configurations look very similar to me, but I’m not able to check the administrator area nor the files via FTP.
Can you please check both back-end and FTP account permissions? I’m suspecting some kind of minor difference in the configuration of the search instances. Once I get to debug the final queries, I will see what the problem is.
Ernest Marcinko
KeymasterI rather suggest using the footer, just before the closing body tag. It’s usually the best place for inline scripts. Don’t forget to put the code inbetween script tags.
Ernest Marcinko
KeymasterAmazing review!
Thank you very much for your offer, but I’m fully committed to codecanyon right now 🙂 I will let you know if anything changes.
Ernest Marcinko
KeymasterYou are welcome and thank you for your kind words!
If you want, you can rate or review the plugin on your codecanyon downloads page.
Feel free to contact me if you find any issues.
Ernest Marcinko
KeymasterHi!
Thanks for the details. I couldn’t find the cause, but I found a solution that simply excluded the search shortcode from the post processing.
Keep an eye on other 3rd party shortcodes as well. The search shortcode was altered by something, which added extra lines and tags between empty lines. This should not happen and may cause issues with other plugins that use shortcodes as a display method. If that ever happens, make sure to disable suspicious plugins one-by-one and keep refreshing the front-end until the problem is fixed. That way you will know which plugin might have caused the issue. If that’s not helping, then most likely the theme is at fault.
I’m hoping it’s not going to happen to other shortcodes 🙂For future reference I changed, includes/shortcodes.php line 124:
[code]return $out;[/code]
to
[code]echo $out;[/code]
Ernest Marcinko
KeymasterHi!
Sorry, I remember answering your ticket, but I guess the malfunctioning deleted few of my responses, including this one.
I’ve checked both urls, but the second one takes me back to the home page. Can you check if it’s correct?
Ernest Marcinko
KeymasterHi!
I’ve googled for like an hour or so, but I’m afraid it’s not possible to get it.
The wordPress codex says that there is no internal function to get the title tag of a page by it’s ID. Mainly becuase it’s a theme tag and it uses global objects, and it get’s it’s value in the site header.
I’ve tried a few different possible solutions on my test environment, but nothing works. It looks so simple, but yet it’s extremely complicated.
One thing we can try, is to generate the title tag without getting it.
If you can tell me how your title tags look like, I might be able to suggest something. What I mean is it’s structure, like for example “{blog_title} | {post_title]”
The blog title is usually there, plus there is a separator and the post title. The order and the separator is usually different. I think you can check this structure in the SEO plugin configuration.
Ernest Marcinko
KeymasterOh ok, I see what you mean. I’m not sure if that’s possible. The title tag is either generated by the theme or by a SEO plugin if you have any.
If you use a SEO plugin I can maybe check for a custom code that might work.
Ernest Marcinko
KeymasterHi!
What is the title tag? If it’s custom field, then you can select it on the Advanced Options panel: http://i.imgur.com/Efg2odR.png
-
AuthorPosts