Forum Replies Created
-
AuthorPosts
-
Thanks Ismael, I am sorry for having left this ticket open. I solved the problem with Search&Filter.
For future reference, I created a filtering form with S&F. Then I added the form to a widget (with the plugin in the widget area it appears the S&F). In the 1/5 column I added the widget just created. The trick was adding a further shortcode just after that, simply as text :
[searchandfilter id=”243″ action=”filter_next_query”]In this way the plugin can filter the blog grid with an ajax request, in a similar way to what happens with the masonry filter.
You can close the ticket. Thanks
May 31, 2020 at 11:17 am in reply to: image container forced at the bottom of a flex column #1218159Hi Guenni007 your solution worked as charm!! I am not so familiar with flexbox, hence thanks also for the guide you posted in your link. I will study it.
Problem solved!May 27, 2020 at 10:59 am in reply to: customise masonry ajax filter to work with grid blog post and custom taxonomies #1216889Maybe it’s better that I open a new ticket for my question above
May 27, 2020 at 1:20 am in reply to: Get one specific custom category to display in blog archive #1216753I got it. File postslider.php in shortcodes. Changed the lines 765-789 in the following code
if( $show_meta ) { $taxonomies = get_object_taxonomies( get_post_type( $the_id ) ); $cats = ''; $categories = get_the_category($the_id); //$excluded_taxonomies = array_merge( get_taxonomies( array( 'public' => false ) ), array( 'post_tag', 'post_format' ) ); //$excluded_taxonomies = apply_filters( 'avf_exclude_taxonomies', $excluded_taxonomies, get_post_type( $the_id ), $the_id ); if( ! empty( $categories ) ) { foreach( $categories as $category ) { $cats .= '<a href="'.get_category_link($category->cat_ID).'">'. $category->name . '</a>'; } } if( ! empty( $cats ) ) { $meta_out .= '<span class="blog-categories minor-meta">'; $meta_out .= $cats; $meta_out .= '</span>'; } }
You can close the ticket
-
This reply was modified 4 years, 11 months ago by
elenapoliti.
May 26, 2020 at 11:46 pm in reply to: Get one specific custom category to display in blog archive #1216719As an update, I actually found that I should work on the loop-index.php that seems to be responsible of the minor-meta .
I changed line 291 from
$cats .= get_the_term_list( $the_id, $taxonomy, '', ', ', '' ) . ' ';
to
$tax .= get_the_term_list( $the_id, $taxonomy, '', ', ', '' ) . ' ';
and added just after line 308 and before line 309 the following
$cat_output .= '<span class="blog-taxonomy minor-meta">'; $cat_output .= $tax; $cat_output .='</span>';
Still no success. Any suggestion?
-
This reply was modified 4 years, 11 months ago by
elenapoliti.
May 26, 2020 at 11:21 pm in reply to: Get one specific custom category to display in blog archive #1216713Excuse me Victoria but you don’t answer my question. I did the search and the only file that must be responsible for the output is the avia-shortcodes/blog/blog.php
The output in blog grid is as follows<span class="blog-categories minor-meta"> <a href="http://localhost:8888/adrianovenudo/category/tipo-2/" rel="tag">Tipo 2</a> <a href="http://localhost:8888/adrianovenudo/luoghi/trentino/" rel="tag">Trentino</a> <a href="http://localhost:8888/adrianovenudo/tipologie/progetto/" rel="tag">Progetto</a> </span>
The first is a Category, the second and third are taxonomies. So please can you help me in changing the blog.php code so that the output maybe somethings like
<span class="blog-categories minor-meta"> <a href="http://localhost:8888/adrianovenudo/category/tipo-2/" rel="tag">Tipo 2</a> </span> <span class="blog-taxonomies minor-meta"> <a href="http://localhost:8888/adrianovenudo/luoghi/trentino/" rel="tag">Trentino</a> <a href="http://localhost:8888/adrianovenudo/tipologie/progetto/" rel="tag">Progetto</a> </span>
Thank you
Sorry for the inconvenience, but I found the problem. It was a cache issue. So everything is fixed.
ThanksMay 26, 2020 at 7:08 pm in reply to: Get one specific custom category to display in blog archive #1216599Hi Victoria thanks for clearing that: I knew that it was impossible to manage the issue via css. I come so to my first question: where should I add my conditional php? Consider that the page is built with ALB and it show a blog post grid. I can add some condition such as get_taxonomies or get_terms and filter them, but I would like to know where I can add my code. In the functions.php with some hook or in a template?
Thanks for clarifyingMay 26, 2020 at 11:46 am in reply to: Get one specific custom category to display in blog archive #1216453Thanks I am going to add the link in the private page.
May 25, 2020 at 1:24 pm in reply to: customise masonry ajax filter to work with grid blog post and custom taxonomies #1216116Thanks Victoria I see your point. In the meanwhile I tried to use Search and Filter Pro. However I have some problems in setting it with Enfold. I created a simple form with taxonomy and sorting, and set the display results as follows :
display results = custom
template option = http://localhost:8888/mydomain/archivio-tematico/ (which is the blog page where I added my blog grid)
ajax container = .ava-griglia-archivio-tematico (which is the class given to the flex column containing the blog grid)I then added the form to the widget area as [searchandfilter id=”224″]. It is visible and it works (I inspected the response that is ok), but the page doesn’t update the results.
Am I doing something wrong? Thanks
May 25, 2020 at 8:48 am in reply to: Get one specific custom category to display in blog archive #1216022Sorry I realize now that my question was misleading. No problem in showing the list of post based on the selected taxonomy (in this case all categories). What I need to do is to set to display:none the custom taxonomies and just keep the categories visible. See image example (https://drive.google.com/file/d/1dYed9TNbvjM_GA20O9Cp26W9k5DXEsC1/view?usp=sharing)
I need hence to understand which function I can add to my functions.php to accomplish it, when on page xxx.
ThanksNo need to answer. I have found which was the problem. When generating a new tag in GTM I had to click on “publish” (right top corner). Consider the topic closed
Thanks Mike, in the meanwhile I found what I needed. For other users’ reference it refers to the use of Google Tag Manager, which is what is needed.
I found very good articles at the following links:https://www.analyticsmania.com/post/track-outbound-links-with-google-tag-manager/
https://www.analyticsmania.com/post/track-pdf-downloads-with-google-tag-manager-ga/You can close the ticket thanks
Sorry, just tried to disable the ALB for the custom post type but still didn’t work..
Thanks, so I have 2 possibilities: disabling ALB from the custom post-types; or using the filter you suggest.
How can I use the avf_template_builder_content filter? I am not sure.
Thanks a lot for the support
Hi I just uploaded it on a test server. Below the access. Consider that it is a trial. Hence I created just 1 over 3 Custom Post types and added just very few custom fields with ACF.
The CPT I created is called “Appartamenti”I am sorry but I probably miss something about the whole thing.
I created a custom post type named ‘appartamenti’
I added to my child them a file single-appartamenti.php and the loop-index.php which was renamed in includes/loop-appartamenti.phpI tried to add a new post, leaving the content empty, while I added some strings in the single-appartamenti.php to see if they appear in front-end, but nothing happened. I thought I did something wrong, so I deleted the previous files and simply added a single-appartamenti.php in which I wrote a basic code with loop (as by wp examples) like the following:
<?php if ( !defined('ABSPATH') ){ die(); } global $avia_config; get_header(); ?> <div id="content"> <div id="inner-content" class="wrap test"> <main id="main" class="test" role="main" itemscope itemprop="mainContentOfPage" itemtype="http://schema.org/Blog"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" <?php post_class('test'); ?> role="article"> <p>THIS IS A TEST</p> </article> <?php endwhile; ?> <?php else : ?> <article id="post-not-found" class="hentry cf"> <h1>Oops, Post Not Found!'</h1> </article> <?php endif; ?> </main> </div> </div> <?php get_footer();
Still nothing happened. I mean in the front-end I see my article completely empty! Am I doing something completely wrong?
ThanksOk thanks!! I’ll try and in case get back to you. It seems quote clear
Thanks, I will do it. But I need to know which part of the original single.php I can overwrite. I did it already with a copy of the page.php, but I am not sure about the single.php. Should I cancel all the first part concerning the blog?
i.e.
if(avia_get_option('frontpage') && $new = avia_get_option('blogpage')) { $title = get_the_title($new); //if the blog is attached to a page use this title $t_link = get_permalink($new); $t_sub = avia_post_meta($new, 'subtitle'); } if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('heading'=>'strong', 'title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));
and write the whole new html/php just after
do_action( 'ava_after_main_title' );
???Thanks
Fantstic: it works fine!! Thank you very much
Yes thanks and sorry for the delay in answering to you. I asked the server owner to disable PageSpeed. You can close the ticket.
Actually I realized that all the images of the site are uploaded with a pagespeed extension!
February 8, 2020 at 10:29 am in reply to: Quick CSS and child theme style.css don't work anymore #1182555Yes thanks, apart for the th font color that is not accepted!
February 7, 2020 at 12:38 pm in reply to: Quick CSS and child theme style.css don't work anymore #1182290Ok I have soved part of the problem. The css code presented in the Enfold documentation is not working at all. However I used the following code to give a bcg color to the th row. It doesn’t take the font color though (it still keeps the default main color). I overcome that by choosing a lighter bcg-color. It is funny, since it gets the font-size and vertical-align rules, but not the color rule
/*---------------------------------------- // Table headings //--------------------------------------*/ #top .main_color .avia-data-table.avia_pricing_minimal th { background-color: #c0daed!important; } .avia-data-table.avia_pricing_minimal th { font-size:16px; vertical-align: middle; color:#ffffff!important!; /*THIS IS NOT WORKING!!*/ } .avia-data-table.avia_pricing_minimal td { color:#000000!important; font-size:14px; }
February 7, 2020 at 9:38 am in reply to: Quick CSS and child theme style.css don't work anymore #1182254Thanks very much Nikko, now it is working. However I am facing difficulties in styling the tables present in the page https://www.marinemammalhabitat.org/immas/summary-of-current-immas/
In the past I styled various enfold tables, but these seem to not accept the css code for styling suggested at the link https://kriesi.at/documentation/enfold/table/
I am puzzled…
February 6, 2020 at 2:18 pm in reply to: Quick CSS and child theme style.css don't work anymore #1182016Sorry can someone be so kind to help me with this topic? Thank you very much in advance
December 19, 2019 at 8:33 pm in reply to: Layer Slider not visible on Safari after upgrade to Enfold and to WP 5.3.1 #1167910Yes please you can close it
December 19, 2019 at 1:43 pm in reply to: Layer Slider not visible on Safari after upgrade to Enfold and to WP 5.3.1 #1167727Thanks @Yigit the beta version did its job! It fixed the problem!
Thanks Victoria, that solved the problem!
Hi Ismael, thanks that was the problem!! I solved contemporarly navigation arrows and Magnific popup issues.
The only things that remains is the submenus hover function that doesn’t work properly
https://whalesanddolphins.tethys.org/cetacean-sanctuary-research/ (submenu not working)
-
This reply was modified 4 years, 11 months ago by
-
AuthorPosts