Forum Replies Created
-
AuthorPosts
-
May 27, 2020 at 1:20 am in reply to: Get one specific custom category to display in blog archive #1216753
I 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, 6 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, 6 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)
Hi Victoria, thanks for suggesting that solution. I added these lines to my functions.php
add_action('wp_enqueue_scripts', 'enqueue_magnific_popup_styles'); function enqueue_magnific_popup_styles() { wp_register_style( 'magnific_popup_style', get_stylesheet_directory_uri() . '/magnific-popup.css' ); wp_enqueue_style( 'magnific_popup_style' ); } add_action('wp_enqueue_scripts', 'enqueue_magnific_popup_scripts'); function enqueue_magnific_popup_scripts() { wp_register_script( 'magnific_popup_script', get_stylesheet_directory_uri() . '/jquery.magnific-popup.js', array( 'jquery' ) ); wp_enqueue_script( 'magnific_popup_script' ); }
Then there are the jquery that make the popup working
function popup_inline() { ?> <script type="text/javascript"> jQuery(window).load(function(){ jQuery('.open-popup-link').magnificPopup({ type:'inline', midClick: true // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href. }); }); </script> add_action('wp_footer', 'popup_inline'); <?php }
Still the popup is not working, the navigation arrows in the lightbox gallery are not shown and images seems freezed, links to the submenus are not working (this last after having updated to Enfold 4.4). I add in the private section reference pages. I also add an admin account for your convenience. I would really be galdful if you could help me solve these problems. Thanks
I need to solve this thing urgentely as another problem aroused with the updating: I realized that the hover function on submenus doesn’t work well (it works as soon as I refresh the page and then stop). I add in the private section an example
I just updated it but the problem is still there. The site has also another problem with navigation arrows when using lightbox in a masonry gallery (see my post https://kriesi.at/support/topic/navigation-arrows-not-visible-in-masonry-gallery/). Your colleague says it is a problem with the declaration of the magnific popup function and the way I enqueued.
I wonder how I can solve it. I used the same function declared in the same way in other web sites and no probelms aroused.
Thanks for helping
-
AuthorPosts