Forum Replies Created
-
AuthorPosts
-
August 24, 2023 at 4:20 pm in reply to: Pagination in portfolio grids not working with plugin Search&Filter #1417073
Hi 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 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 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 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 #1345734March 1, 2022 at 10:12 am in reply to: Fullwidth easy slider not full width in WPML translated pages #1342676Thanks Ismael. I am afraid it must be some incompatibility between the new versions of Enfold and WPML. I will go on updating the pages manually while waiting for some updates
February 28, 2022 at 2:11 pm in reply to: Fullwidth easy slider not full width in WPML translated pages #1342562Hi Ismael I still have the same problem. In parallel I am checking this out with WPML guys who still didn’t figure it out. We tested on a new brand wordpress installation and the same issue came out. Could you be of help?
Here the link to the video I made showing my workflow, just for your informationFebruary 25, 2022 at 5:37 pm in reply to: Fullwidth easy slider not full width in WPML translated pages #1342309By the way Ismael I tried one more thing: I had a copy of the website on my local desktop without WPML. I installed the WPML and set it up in a basic way (I didn’t set translation for the acf fields yet) and simply translated the home page. The translated version presented a sidebar, exactly in the same manner it happened on the test sandbox made with the guys from WPML.
As you say, the issue doesn’t appear if I translate manually the page from within the Layout Builder. However other issues appear, such as the settings of columns (margins/padding etc) are completely messed up in all languagesThis seems to be a sort of conflict between Enfold and WPML. Which is strange as I use WPML in other websites built with Enfold and never faced this problem. I urgently need some help because I have to finish this work. Thanks
-
This reply was modified 3 years, 12 months ago by
elenapoliti.
February 25, 2022 at 10:47 am in reply to: Fullwidth easy slider not full width in WPML translated pages #1342254February 24, 2022 at 11:49 am in reply to: Fullwidth easy slider not full width in WPML translated pages #1342138Hi Rikard, you can check to this page and its translation https://www.yourapartmentinvenice.com/apartment/ca-frezzeria/
You will need the login details in private, since right now the site is on maintenance modeJanuary 14, 2022 at 4:42 pm in reply to: Change standard enfold mobile menu behaviour with a total custom code #1335607Thanks for the information
January 13, 2022 at 10:19 am in reply to: Change standard enfold mobile menu behaviour with a total custom code #1335375Thanks, I just needed to know if that is feasible: I can try to implement it. Please, if it is possible for you, could you tell me if to avoid Enfold loads its own mobile menu I can just add this to my functions.php
function avia_append_burger_menu() {
return “”;
}And then append my own custom menu?
Thanks
-
This reply was modified 3 years ago by
-
AuthorPosts
