Forum Replies Created
-
AuthorPosts
-
Hi Jordan,
I really understand!
Thank you very much!
Best regards,
NickHi Sarah,
You are absolutely right!
Your code worked!
Thank you so much!!
Best regards,
NickJune 27, 2017 at 12:09 pm in reply to: Exclude pages and posts by id from ajax search results #813368Hello Sirs,
I am trying also to exclude some posts and pages from search results and for testing purposes, I used the post-page with id:5048 that I want to exclude.
Now, my search doesn’t display any result…
I used the following code to my functions.php file:
// Use search just for certain post-types and exclude posts by id
if ( ! function_exists( ‘bb_filter_search_results’ ) )
{
add_action( ‘pre_get_posts’, ‘bb_filter_search_results’ );
function bb_filter_search_results( $query )
{
if ( ! $query->is_admin && $query->is_search )
{
$query->set( ‘post_type’, array( ‘post’, ‘portfolio’, ‘document’, ‘your_custom_post_type’ ) );
$query->set( ‘post__not_in’, array(5048) );
}
return $query;
}
}if ( ! function_exists( ‘bb_filter_ajax_search_results’ ) )
{
add_filter(‘avf_ajax_search_query’, ‘bb_filter_ajax_search_results’, 10, 1);
function bb_filter_ajax_search_results( $search_parameters )
{
$defaults = array(‘numberposts’ => 5, ‘post_type’ => array( ‘post’, ‘portfolio’, ‘document’, ‘your_custom_post_type’ ), ‘post__not_in’ => array(5048), ‘post_status’ => ‘publish’, ‘post_password’ => ”, ‘suppress_filters’ => false);
$_REQUEST[‘s’] = apply_filters( ‘get_search_query’, $_REQUEST[‘s’]);
$search_parameters = array_merge( $defaults, $_REQUEST );
return $search_parameters;
}
}I did something wrong?
I am waiting for your answer…
Thank You in advance.
Best regards,
NickHi Jordan,
Thank you for your quick response.
I have followed your instructions but my issue is not how to create a new row in mega menu. My question is if there is a way to position the mega menu in vertical alignment and not in Horizontal alignment as default.
Best regards,
NickHi Victoria,
Thank you very much for your great support!
Your code worked!
Best regards,
NickJune 25, 2017 at 6:23 pm in reply to: Change font size in regular (deleted) price to loop products #812767Hi Victoria,
Thank you very much for your excellent support!
Your code worked!
I am also sharing the following code for someone who may need it that affects only the Regular (strikethrough) price in “You may also like” products and “Related products”:
#av_section_1 .price del span.woocommerce-Price-amount.amount,
#av_section_1 .price del span.woocommerce-Price-amount.amount .woocommerce-Price-currencySymbol {
font-size: 15px !important;
}Best regards,
NickJune 23, 2017 at 10:54 am in reply to: Change font size in regular (deleted) price to loop products #812038Hi John,
Thank you very much for your quick support!
Your css code affects the Regular (strikethrough) price and the Sale price in Single product page, in “You may also like” products & “Related products” also.
I would like to change only the Regular (strikethrough) price in “You may also like” products and “Related products” as shown in screenshot: https://prnt.sc/fmhc7x and to not affect the other prices.
In fact, I would like to create that effect: Regular (strikethrough) price in smaller font than the Sale price in “You may also like” products and “Related products” as shown in screentshot: https://prnt.sc/fn6wv2
Thank you in advance,
Best regards,
Nick- This reply was modified 7 years, 6 months ago by nickgin.
June 23, 2017 at 1:01 am in reply to: Change font size in regular (deleted) price to loop products #811898Hi John,
Thank you for your quick response.
I would like to change the font size of regular price (deleted price) thru css code in loop products such as “You may also like” & “Related products”, as shown on screenshot: https://prnt.sc/fmhc7x
Url: http://zoomit.gr/wordpress_2/store/spiti/lg-43lh500t-tv-43-led-full-hd-200-hz/
I am waiting your answer.
Thank you in advance.
Best regards,
NickHi Ismael.
You are a brilliant moderator!! You are a perfect team!!
It worked!! Thank You very much!!
Best regards,
NickHi Victoria,
How are you?
Thank you for your quick response and your support.
I tried your CSS code, but it changes the prices (Regular & Sale) both together. Pls see on screenshot: https://prnt.sc/fly0q2
I would like (if that possible) to control the two prices (Regular and sale) separately, for example: Regular price in smaller font than Sale price as shown in screenshot: https://prnt.sc/fkjmuy
I am looking forward your answer..
Best regards,
NickHi Rikard,
Thank You very much for your quick response, but unfortunately your css didn’t work.
I tried the following with no result:
p.price ins span.woocommerce-Price-amount {
font-size: 24px;
}URL:
I am waiting your answer.
Best regards,
NickOk, thank you very much Mike!
Best regards,
NickThank you for your answer Mike, but unfortunately it didn’t work… the elements still are overlapped.
I am using the following css code:
span.sku_wrapper {
display: block;
font-weight: bold;
position: absolute;
top: -500px;
}.product_meta {
position: absolute!important;
top: 750px!important;
}I am waiting your support.
Best regards,
NickHi Mike,
Thank You for your excellent support!
Your css code worked with SKU, but I have some side effects now.
Some classes such as posted_in, tagged_as & div.woocommerce-tabs.wc-tabs-wrapper are overlapped.
See on screenshots: https://prnt.sc/fkw2s2
https://prnt.sc/fkw2zwI am waiting your answer.
Best Regards,
Nick- This reply was modified 7 years, 6 months ago by nickgin.
Hello Rikard,
Thank You for your quick support.
URL:
I tried the following elements thru CSS code, but it controls both Regular & Sale price and not separately.
#top .price, #top .price span, #top del, #top ins {
I am waiting your answer.
Thank You in advance,
Best Regards,
NickHello Mike,
Thank You very much for your quick answer.
url (SKU in correct position)
url (SKU in wrong position)
I am waiting your answer.
Thank You for your excellent support.
Best Regards,
NickHi Jordan,
It worked!
Thank you very much for your so quick response.
You have a great support!
Best regards,
Nick Ginargiros
- This reply was modified 7 years, 6 months ago by nickgin.
June 5, 2017 at 11:40 pm in reply to: Remove space between main menu sublevel links and subcategory header #804222Hi Yigit,
It worked! Thank you very much!
I really appreciate your great support!
Best regards,
NickHello Sirs,
I resolved all above thru older postings!!
I give the solutions for others might have some issues:
(1. + 2.):
#header .widget {
right: -5%;
left: 80%;
padding-top: 0;
position: absolute;
top: 0;
transform: translate(-50%);
z-index: 999;
}3. Just disappear search form during scroll with the following code:
.header-scrolled #text-9 { display: none; }
(#text-9 is the class of the element.)
Hello Victoria,
I am facing the same issue… every time a page loads on desktop screens, the search bar appears for a second, and then disappears once the page is loaded.
in functions.php file:
add_filter( ‘wp_nav_menu_items’, ‘avf_add_search’, 3, 2 );
function avf_add_search( $items, $args ) {
if ($args->theme_location == ‘avia’)
{
$search = ‘<li id=”menu-item-search-mobile” class=”menu-item menu-item-type-post_type menu-item-object-page current-menu-item page_item page-item-18 current_page_item menu-item-top-//level menu-item-top-level-5″>’.get_search_form(false).’‘;
$items = $search . $items;
}
return $items;
}in quick css:
@media only screen and (max-width: 767px) {
#top #searchform> div {
display: block !important;
opacity: 1 !important;
}
}and for mobile view quick css:
#menu-item-search-mobile {
display: block;
}Could you help me please?
Thank You in advance,
Nick
Hello Sirs,
How are you?
I tried to add the search widget to the header area but the search results breaks the site. The other issue is that the search widget “sticks” with the sticky menu during scrolling down and the other issue is that some menu items from the main menu bar (below that header widget) don’t work as expected.
Please I need your help.
Best regards,
NickMay 27, 2017 at 12:09 pm in reply to: Change the image overlay arrow icon in product images to my client's logo #800517Hello Sir,
I figured that out!
The following code worked for me:
.image-overlay .image-overlay-inside:before {
content: ”;
border-radius: 0;
background-image: url(http://zoomit.gr/wordpress_2/wp-content/uploads/2017/05/Z_logo.png);
background-size: contain;
background-repeat: no-repeat;
background-position: 80% 80%;
}Thank You!
Please close the topic.
-
AuthorPosts