Forum Replies Created
-
AuthorPosts
-
September 3, 2023 at 11:54 am in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417943
Thanks very much Nikko: now it works smoothly!! You can close the ticket
September 1, 2023 at 2:40 pm in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417828Yes I know. I was checking the test page you created that worked with your CSS code
Here’s the link of it appears to me
https://www.dropbox.com/scl/fi/7cvr7bjr9f3pxf2jn15np/Screenshot-2023-09-01-at-14.33.12.png?rlkey=r60ohtz0slwknfaw06j1n2fuc&dl=0
and this is the image of the inspector windowAs you see the 3 <p> are all invisible as they are ruled by this
#top #search-filter-results-4746 hr,
#top #search-filter-results-4746 > div:not(.pagination) p {
display: none;
}But the second <p> whch has the image should be visible, while is not. I was trying to use the :nth-child (2) selector but again it doesn’t work
-
This reply was modified 2 years, 6 months ago by
elenapoliti.
September 1, 2023 at 2:12 pm in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417824The only things I see that has a problem is the following rule
#top #search-filter-results-4746 div:not(.pagination) p:has(img) {
display: block;
}which is not applied. I tried to add !important but still doesn’t work
September 1, 2023 at 12:44 pm in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417806Thanks Nikko, I saw you were working on the new testing page. Now it seems working!! I have just to adjust the columns to adapt as 100% when in mobile view and the images are missing, but the system seem finally to work
August 30, 2023 at 1:55 pm in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417569Thanks Nikko, that’s a bummer! I really wanted to avoid a CSS approach again…. I know that with show=results” it works, but I cannot use the Portfolio Grid which was definitely easier.
The show=results renders portfolio items in one column. Do you have any suggestion how can I render the items in 2 columns as I set the portfolio grid? Also the rendering has the link to the item in the title only and not on the image.
Then I can play with CSS to make it looking in the same way.Thanks
-
This reply was modified 2 years, 6 months ago by
elenapoliti.
August 29, 2023 at 12:57 pm in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417426Hi Nikko, I just did it and it doesn’t work. Unless I use as Infinite Scroll Container the wrong destination (I inserted #isra-filter-portfolio, which is the ID I gave to the portfolio grid in the LAyout Builder).
Please check the test page I created (details are in the private section of some days ago).
Also I tried to use infinite scroll with Post/Result selector = .grid-entry, and again it doesn’t work.
Any ideas?August 28, 2023 at 9:21 am in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417305Hello??? It’s 4 days I don’t have a feedback. Please can you help me go through the problem? Thanks
August 24, 2023 at 4:20 pm in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417073Hi nikko had you have the opportunity of checking the issue with the access and page I sent to you this morning? Thanks
August 24, 2023 at 1:42 pm in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417053On MAMP I have Enfold version 5.6.2 and the last version of S&F plugin. The same was online. Yesterday I tried to update the Enfold online with the last version but the problem still exists. I am sure that there’s something that gets in conflict with the pagination links. I also tried to disable the WP_Optimize cache and / or iThemes. But nothing worked
August 24, 2023 at 9:17 am in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417032I would like to add also another problem that I found with this website: several times after posting new portfolio pages I realize that in front-end the text contains the entire avia shortcode. I have to open the page and just press enter with the keyboard on the last letter of the text block that the issue disappears, but still the issue is quite annoying. Is it a problem of memory?
August 24, 2023 at 9:09 am in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417031Thanks, I need some time to setup a staging site for you, though I doubt this can be of help since, as I explained, the site on my local MAMP is working fine. So there must be some conflict on my live site that I cannot detect.
What I can suggest you is to work on a test page that I used with a duplicate of the filter. I am going to give you details and access in the private section.
Please check out the test filter in the S&F section, and then check out the test page. Following S&F explanation (https://searchandfilter.com/documentation/search-results/custom/) I used the following shortcode:
[searchandfilter id=”123456″ action=”filter_next_query”]February 14, 2023 at 10:58 pm in reply to: Delay in visualizing image positioned absolute over Fullscreen Slider #1397997ok Mike thanks
Thanks Ismael for the suggestion!!
Just found a quick solution by adding
.grid-content {
height:80px;
}Maybe there’s something better to do. If you have further suggestions please go ahead!
February 7, 2023 at 1:11 pm in reply to: Delay in visualizing image positioned absolute over Fullscreen Slider #1396974No Mike it’s not a matter of plugins, as the same things is happening on my local computer on a developing website, which has no plugin at all yet.
I wonder if, with the latest upgrades of Enfold and the introduction of position and z-index for most elements may cause a different behaviour.I found a hack, which is to put the elements in a section with z-index 10. However I would prefer to have single elements, instead of a section, overlapping the full screen slider. Otherwise I guess I should deal with LayerSlider or Slider Revolution (which I hoped not to use)
If Ismael may jump in the conversation, it would be great
February 3, 2023 at 3:29 pm in reply to: Delay in visualizing image positioned absolute over Fullscreen Slider #1396549Hi Ismael, by the way in the the same website where I created my test page for you, I encounter the same issue when I added to the pages an opening “fullscreen slider” with the column positioned -30% margin top (you can check any page of the website). The column with title and text appears overlapped to the slider only when starting scroll the page.
That’s kind of weird
February 2, 2023 at 9:42 am in reply to: Delay in visualizing image positioned absolute over Fullscreen Slider #1396351Hey Ismael, it is on a local machine because I am starting to develop it. However I reproduced the page on a site that I just published, so you can have a look. I post it on the private link
-
This reply was modified 3 years, 1 month ago by
elenapoliti.
This last post is to close the topic. I have found the solution and it was only a matter of understanding how it was named the taxonomy for the portfolio entries. Easy question. However the working code is here below.
Explanation: when on a single portfolio entry, it shows number of single post and total number of posts within one category)add_shortcode('post-counter', 'get_current_post_num'); function get_current_post_num() { $url = $_SERVER['REQUEST_URI']; $curr_post_id = url_to_postid( "https://sharkrayareas.org".$url ); //Too early for $post object $taxonomy = 'portfolio_entries'; $term_objs = get_the_terms( $curr_post_id->ID, $taxonomy ); foreach ($term_objs as $term_obj) $term_ids = $term_obj->term_id; // get the id from the WP_Term object $args = array( 'post_type' => 'portfolio', 'post_status' => 'publish', 'tax_query' => array( array( 'taxonomy' => 'portfolio_entries', 'terms' => $term_ids, ), ), 'order'=> 'ASC', 'posts_per_page' => -1 ); $portfolio_posts = new WP_Query($args); if ($portfolio_posts->have_posts()): echo 'true'; $total_posts = $portfolio_posts->found_posts; $num = 1; while ($portfolio_posts->have_posts()) : $portfolio_posts->the_post(); $post_id = get_the_ID(); if ($post_id === $curr_post_id) { $output= '<div class="count">'. $num . '/' . $total_posts .'</div>'; } else { $num++; } endwhile; endif; return $output; }Hi Mike, actually I am not interested in hiring somebody for this thing on Upwork.com. I am getting some inputs through Stackoverflow and here what I found.
The code above I was trying to use to get the category was obviously wrong. The right code should be this:$categories = get_the_category( $post_id->ID);So with my data it should come out as follows
function get_current_post_num() { $url = $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; $curr_post_id = url_to_postid( "https://".$url ) $categories = get_the_category( $curr_post_id->ID); //etc etcThe problem is that in the portfolio item the array returned is 0, while the same exact code applied to a blog single post returns an array with all the terms (hence the categories applied).
So I come back to my previous question: how are the portfolio categories treated??? How can I access them? This is a question that should pertain to the Enfold support I believe.
Thank you very much
-
This reply was modified 3 years, 1 month ago by
elenapoliti.
Thanks Mike for your answer. The code above works as I said and you can see it on three test portfolio items at the link in private area. I can see how to add ob_start() and ob_end_clean()
So you think there is no possibility of obtaining a category if I know the post_ID? because from WP documentation it seems that it is possible. What I don’t understand is if Portfolio categories should be handled as categories or taxonomy (sorry for my ignorance in WP)
Thanks
-
This reply was modified 3 years, 1 month ago by
elenapoliti.
January 16, 2023 at 1:48 pm in reply to: Create shortcode for post navigation left/right arrows portfolio entries #1378870Thanks for your answer Mile, yes you can close the ticket
January 16, 2023 at 11:45 am in reply to: Create shortcode for post navigation left/right arrows portfolio entries #1378832Thanks Mike, your solution works nicely. Yes the number of posts is something the client wanted but I see it a little bit hard. The problem is that I am using portfolio pages to show these forms, that have different categories. So the total number of posts actually shown should be the total within a certain category. I am not sure I could make it.
January 13, 2023 at 11:22 am in reply to: Create shortcode for post navigation left/right arrows portfolio entries #1378559Hi, concerning the above topic do you have a suggestion? Thanks in advance
Thanks Rikard, you can close the topic
Oh gosh you are right!! I am so stupid. I gave you the access to the wrong website (I was having a trouble on a new website). But your answer made me find the solution (which was already implemented in the website you logged in), which is the following function
add_filter('avf_builder_boxes', 'add_builder_to_posttype'); function add_builder_to_posttype($metabox) { foreach($metabox as &$meta) { if($meta['id'] == 'avia_builder' || $meta['id'] == 'layout') { $meta['page'][] = 'wpdmpro'; /*instead add the name of the custom post type here*/ } } return $metabox; }Thank you very much and sorry for bothering!
Hi Nikko, I add the link in the private section. The package pages are treated as a blog actually. I would like to find a way(in case by adding a hook to the functions.php) to add a custom sidebar for these kind of posts, which includes whatever I want (e.g. categories of the WPDM packages or else, instead of the blog posts categories)
thanks
April 1, 2022 at 10:54 am in reply to: Fullwidth easy slider not full width in WPML translated pages #1346833Thanks Günter for the quick reply! In the meanwhile WPML people suggested the following workaround that I have to test
Replace the following line (wp-content\themes\enfold\config-wpml\config.php – LINE 794)add_action( 'wpml_pro_translation_completed', 'avia_wpml_sync_avia_layout_builder_meta', 10, 3 );With this:
add_action( 'wpml_pro_translation_completed', 'avia_wpml_sync_avia_layout_builder_meta', 1000, 3 );March 31, 2022 at 9:19 am in reply to: Fullwidth easy slider not full width in WPML translated pages #1346712Ismael I am worried that the topic will not be solved. Look at the answer I have received from WPML https://wpml.org/forums/topic/enfold-fullwith-slider-widget-changes-layout-on-new-posts/page/3/#post-10915587
March 24, 2022 at 5:44 pm in reply to: Fullwidth easy slider not full width in WPML translated pages #1345900ok thanks
March 23, 2022 at 6:45 pm in reply to: Fullwidth easy slider not full width in WPML translated pages #1345734 -
This reply was modified 2 years, 6 months ago by
-
AuthorPosts
