Forum Replies Created
-
AuthorPosts
-
Hi Ismael,
Thank you so very much for your reply! This indeed was a problem.
It is entirely my fault – that CSS code DID exist in my Custom CSS, and I have no idea how it ended up there. I have simply deleted it, because I had no intention to modify that parameter. I must have clicked by mistake, and saved it like that.
Thanks again!!
Kind regards
Hello,
Can someone please have a quick look?
Thanks!
Hi Yigit,
Just noticed that I never thanked you for this, all worked out perfectly!
Thanks!
January 18, 2021 at 8:02 am in reply to: I have set a different logo for mobile phones, but it is not clickable anymore #1273254Hi Nikko,
I thought I replied to you, but it seems like I didn’t, sorry for that. Thanks a lot, this fix worked perfectly! I indeed missed the anchor tag on the mobile logo version.
Thanks again!
Kind regardsJanuary 11, 2021 at 5:27 pm in reply to: Center and enlarge search field on search results page #1271655Hello Ismael,
Thanks a lot, it works perfectly!
Kind regards
January 8, 2021 at 7:01 pm in reply to: Center and enlarge search field on search results page #1271141Hi Ismael,
Thanks a lot, and yes, I see why it won’t work.
I am attaching the credentials in the private content section.
Best regards
January 6, 2021 at 7:11 pm in reply to: Center and enlarge search field on search results page #1270697Hi Ismael,
Thank you for your reply. I actually copied it from this thread. This is how my child theme functions.php looks like altogether, below. But it still doesn’t work.
<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*///set builder mode to debug
add_action(‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug()
{
return “debug”;
}/*
* AJAX Search won’t search the pages but posts only, in the SEARCH DROPDOWN
*/function avf_modify_ajax_search_query($search_parameters) {
parse_str($search_parameters, $params);
$params[‘post_type’] = ‘post’;
$search_parameters = http_build_query($params);
return $search_parameters;
}add_filter(‘avf_ajax_search_query’, ‘avf_modify_ajax_search_query’, 10, 1);
/*
* AJAX Search won’t search the pages but posts only, in the SEARCH RESULTS PAGE
*/function exclude_pages_from_search($query) {
if ( $query->is_main_query() && is_search() ) {
$query->set( ‘post_type’, ‘post’ );
}
return $query;
}
add_filter( ‘pre_get_posts’,’exclude_pages_from_search’ );/*
* Changing placeholder message in Enfold standard AVIA search field not to have my manual placeholders in mobile view
*/// adjust search placeholder on mobile view
function ava_script_search_placehodler() {
if ( wp_script_is( ‘avia-default’, ‘registered’ ) ) {
wp_add_inline_script( ‘avia-default’, ‘(function($) {
(function($) {
if(window.innerWidth >= 989) return;
$(".av_searchform_wrapper").find("#s").attr("placeholder", "Search");
})(jQuery);
‘);
}
}
add_action( ‘wp_enqueue_scripts’, ‘ava_script_search_placehodler’, 9999);January 5, 2021 at 6:04 am in reply to: Center and enlarge search field on search results page #1270327It was html and not a shortcode, obviously :)
January 5, 2021 at 6:03 am in reply to: Center and enlarge search field on search results page #1270326Hi Ismael,
Thanks a lot for your reply. I have added this to the functions.php (Child theme), but unfortunately, it doesn’t work. I did empty the browsing cache on my mobile phone, and the website has no cache plugins (the only cache is CloudFlare, but I completely purget it).
This is the original placeholder text (here in a shortcode), that I want to show as simple “Search” on mobile phones:
<div class=’avia_search_element avia-builder-el-1 el_after_av_textblock el_before_av_one_fifth ‘><form action=’https://staging.captis.com/’ id=’searchform_element’ method=’get’ class=” ><div class=’av_searchform_wrapper’ style=’border-radius:20px; ‘><input type=’text’ value=” id=’s’ name=’s’ placeholder=’Search the News: Articles, Sources, Titles, Companies, Countries…’ style=’border-radius:20px; font-size:20px; ‘ class=’ av-input-hasicon’ /><span class=’av-search-icon avia-font-entypo-fontello’ style=’font-size:20px; ‘></span><div class=’av_searchsubmit_wrapper’ style=’border-radius:20px; ‘><input type=’submit’ value=’Search’ id=’searchsubmit’ class=’button’ style=’border-radius:20px; font-size:20px; ‘ /></div><input type=’hidden’ name=’numberposts’ value=’5′ /><input type=’hidden’ name=’results_hide_fields’ value=” /></div></form></div>
Any idea?
Thanks again.
Kind regardsJanuary 4, 2021 at 7:09 pm in reply to: Center and enlarge search field on search results page #1270227I am sorry, I just realized I didn’t answer your question properly: The search field and the current placeholder text were inserted using your AVIA Layout Builder – it is a standard Enfold search field.
Thanks!
January 4, 2021 at 3:51 am in reply to: Center and enlarge search field on search results page #1270074Hi Ismael,
Thanks for your swift reply!
I have created a (modified) copy of search.php and have put it in a child theme directory, and restored the original one at the enfold parent theme directory, thanks a lot for that!
I am attaching the link to the staging page related to the search field I was asking about, in a private section. It is a standard search field, somewhat CSS-adapted, but works just fine. The placeholder text is certainly too long for mobile phones, and doesn’t look good. I’d like to simply have “Search” for the mobile phones in a placeholder, instead of that longer content.
Thanks a lot again!
Kind regards
January 3, 2021 at 10:59 am in reply to: Center and enlarge search field on search results page #1270037Hello again,
I found a solution by replacing the DIV section in search.php with a relevant code (adding again my full-sized preformatted search field).
Please do let me know about my second question (mobile phone placeholder issue).
Back to search.php: I am using a child theme. Do you advise that I put the modified search.php in the child theme folder?
Thanks.
Hi Yigit,
Thank you for your reply – I actually did manage to add search field properly (I have activated the shortcode [avia_search] in my child theme functions.php, and was using it for the search field).
Besides – thanks a lot for showing me how to activate the the Layout Builder debug mode, it will be useful for a few other things – I didn’t know I could do that.
Now back to the search fields I am placing in the pages: How can I have that search field behave the same like the search field I have in the header menu bar, in terms of searching for results while I type a word to search for? Is it possible with Enfold, or do I need to install Relevanssi or similar in addition (which I’d like to avoid)?
Thanks again
Kind regardsPlease disregard my previous message (#1257470), it was my browser. Let me know about my first question. Thanks!!
Urgent help needed:
===============
Strange that yesterday I asked you about the search function, as I was fine-tuning the website before going live tomorrow, Monday. I didn’t do anything even remotely related to it, besides only asking you my previous question in this topic. Now I tried to find a post via search box(es), and I am getting a 403 Forbidden error message (“You don’t have permission to access this resource.”). Furthermore, the AJAX search doesn’t function at all. Once again, I didn’t touch anything, I have just been polishing the pages’ layout. No new plugins installed whatsoever, either.Please help!
Thanks!
Kind regardsOctober 17, 2020 at 8:21 pm in reply to: Sidebars display at the bottom of the page after the content, before the footer #1253527Thanks a lot!!!
Luckilly, it is not a critical plugin.
Best regards
October 9, 2020 at 9:15 pm in reply to: Sidebars display at the bottom of the page after the content, before the footer #1251754This reply has been marked as private.October 7, 2020 at 11:29 pm in reply to: Sidebars display at the bottom of the page after the content, before the footer #1251229Any news on this, please?
ThanksOctober 3, 2020 at 5:39 pm in reply to: Sidebars display at the bottom of the page after the content, before the footer #1250337Sure, thank you. Login credentials are in the Private Content section.
October 2, 2020 at 6:43 pm in reply to: Sidebars display at the bottom of the page after the content, before the footer #1250184Anyone, please?
October 1, 2020 at 10:50 pm in reply to: Menu appearance on ONE single page changed as opposed to all others #1249942Thank you for this Rikard:
3.5 years later I found usage of this feature (superscript number in the menu, here at your website indicating the number of openings/jobs).
I have followed your instructions, but it doesn’t work. I have added the CSS class via WP Quick CSS, and assigned the class attribute to the menu item – nothing happens.
Any idea?
Thanks!April 4, 2017 at 4:55 pm in reply to: Menu appearance on ONE single page changed as opposed to all others #771865Hi Victoria,
Thank you very much for attending to this! Thank you also for figuring this out – I am sorry for disturbing you, I actually thought the problem came from the theme update, now I realize it is likely to be related to the Gravity Forms plugin update. This is because I haven’t modified that page at all, and it worked previously.
Less important, can you please let me know if this is possible (my other question): “…in the main menu on the top right, the list item is JOBS. What I love about it is that it has that little number on it, stating the number of openings you have. How did you achieve that?”
Once again, thanks!
Kind regards
April 4, 2017 at 4:01 pm in reply to: Menu appearance on ONE single page changed as opposed to all others #771832Anyone, please?
Makes sense, thanks!
Hi, and thanks for this,
Is it necessary to run a child theme in order to insert the Google Social Media tags (and other, similar, such as phone numbers, logo…), i.e. can we simply insert in the Enfold theme footer.php?
Thanks!
March 14, 2017 at 7:12 am in reply to: Re-load the images in the layer slider, after the update loss #760466Seems like it works just fine, thanks a lot!
March 11, 2017 at 10:19 pm in reply to: Advanced LayerSlider Not Working – (Enfold v 3.8.4) (WP v 4.7.2) (LS v 5.6.8) #759476Thanks Ismael,
I don’t know re the theme version prior to the update, it was updated regularly as soon as a notification came up, at least a couple of times for several months now. I don’t have a staging site, unfortunately, only the backups. But I do have those missing images.March 11, 2017 at 6:24 am in reply to: Advanced LayerSlider Not Working – (Enfold v 3.8.4) (WP v 4.7.2) (LS v 5.6.8) #759268Trying that, thanks.
March 11, 2017 at 12:02 am in reply to: Advanced LayerSlider Not Working – (Enfold v 3.8.4) (WP v 4.7.2) (LS v 5.6.8) #759187Well, my advances LayerSlider doesn’t work any longer! Tried disabling plugins, doesn’t help. Sliders lost their pictures and transitions.
-
AuthorPosts