Home › Forums › ART WordPress Theme › the archive not seem to be working
- This topic has 23 replies, 3 voices, and was last updated 6 years, 10 months ago by
Alex.
-
AuthorPosts
-
July 28, 2019 at 10:23 am #19061
Hello,
my site is http://www.secondmind.hk
the archive button on the top right don’t seem to be working properly, can you look into why?Thanks
July 28, 2019 at 3:26 pm #19066i mean the portfolio icon, not working properly
July 29, 2019 at 1:47 am #19067Hi, please send your question(this topic URL) and wp-admin(URL / username/password) to uiueux@gmail.com, I’ll log in to check it.
Regards!
SeaTheme – uiueux.com – Twitter – FacebookJuly 29, 2019 at 8:38 am #19072This reply has been marked as private.July 30, 2019 at 2:40 am #19078It works.
Please don’t forget to choose a category for “Theme Options>Layout>Category for Portfolio Icon on Header”July 30, 2019 at 1:55 pm #19085now all of a sudden the info page doesnt work… it always happen and why!!?
July 30, 2019 at 2:22 pm #19086i solved it by regenerated the permalink(as it always automatically set to the default), and switch back to http://www.secondmind.hk/info.
i wonder what happen there! why it always has problem when the link i set become http://www.secondmind.hk/info, it is not the first time…July 31, 2019 at 3:00 am #19094Hi, I found there are many other URLs in Permalinks Customizer/Redirects tab, did you set them manually??
The type ux-portfolio URLs should be generated automatically. I don’t know why other URLs are generated automatically. I suggest you remove them except the type ux-portfolio URLs.July 31, 2019 at 2:33 pm #19098i only manually type in the URL for the page i need, the three portfolio and info page only basically, how does that a problem?
July 31, 2019 at 4:20 pm #19099and i am not sure what to remove? can u be specific? thanks alot
August 1, 2019 at 4:49 am #19102Sure, I removed the extra items. I think maybe the Post Duplicator plugin cause it.
Please check if there is URL generated automatically when you duplicate post/project.August 1, 2019 at 2:51 pm #19104thanks alot, there is one more thing, for portfolio page it usually only show everything at once when everything in the page has loaded.
since i have youtube/vimeo embeded in all my portfolio work, for some location/country where youtube is loading super slow, or even not able to load, the whole page will not show anything, not even the photo or text. is there anyway that can be solve?August 1, 2019 at 4:24 pm #19106Hi,
I have also a question about the ‘category for portfolio icon on header’:
will it be possible to show all the categories?Many thanks in advance.
Alex
August 2, 2019 at 5:25 am #19109Hi davidtse,
It is not possible to control Youtube to show if it is blocked by theme. I suggest you use the hosted videos.
If is ok, I will help you add the hosted video, you need to upload the m4v/webm/ogg format video to media library.Regards
August 2, 2019 at 5:26 am #19110Hi Alex,
Thank you for purchasing our theme.
Please replace the file(/themes/art-theme/functions/interface/interface-ajax.php) with the codes<?php //Function interface ajax portfolio list function arttheme_interface_ajax_portfolio_list(){ $post_id = intval($_POST['post_id']); $paged = intval($_POST['paged']); if($post_id){ $category = arttheme_get_option('theme_option_category_for_more_project'); $per_page = arttheme_get_option('theme_option_category_for_more_project_num'); $columns = arttheme_get_option('theme_option_columns_for_more_project'); $per_page = $per_page ? intval($per_page) : -1; $paged = $paged ? $paged : 1; if(!intval($category)){ $category = ''; }else{ $category = intval($category); } // get all terms in the taxonomy $terms = get_terms( 'ux-portfolio-cat' ); // convert array of term objects to array of term IDs $term_ids = wp_list_pluck( $terms, 'term_id' ); $the_query = new WP_Query(array( 'posts_per_page' => $per_page, 'paged' => $paged, 'post_type' => 'ux-portfolio', 'tax_query' => array( array( 'taxonomy' => 'ux-portfolio-cat', 'field' => 'term_id', 'terms' => $term_ids, //'terms' => $category ) ) )); if($the_query->have_posts()){ if($paged < 2){ ?> <div class="ux-portfolio-ajaxed-list-wrap container <?php echo sanitize_html_class($columns); ?>"> <div class="ux-portfolio-ajaxed-list grid-mask-boxed-center clearfix"> <?php } ?> <?php while($the_query->have_posts()){ $the_query->the_post(); $thumb_width = 650; $thumb_height = 490; $thumb_url = get_template_directory_uri(). '/img/blank.gif'; if(has_post_thumbnail()){ $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'arttheme-thumb-11-normal'); $thumb_width = $thumb[1]; $thumb_height = $thumb[2]; $thumb_url = $thumb[0]; } $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'arttheme-thumb-11-normal'); $image_lazyload = arttheme_get_option('theme_option_enable_image_lazyload'); $image_lazyload_img_style = 'data-bg="' .esc_url($thumb_url). '"'; $image_lazyload_img_class = 'ux-lazyload-bgimg'; if(!$image_lazyload){ $image_lazyload_img_style = 'style="background-image:url(' .esc_url($thumb_url). ');"'; $image_lazyload_img_class = ''; } ?> <section class="ajaxed-grid-item grid-item"> <div class="grid-item-inside"> <div class="grid-item-con"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="grid-item-mask-link"></a> <div class="grid-item-con-text"> <h2 class="grid-item-tit"><a class="grid-item-tit-a" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> </div> </div> <div class="brick-content ux-lazyload-wrap" style="padding-top:75%;"> <div class="ux-background-img <?php echo esc_attr($image_lazyload_img_class); ?>" <?php echo wp_kses($image_lazyload_img_style, arttheme_shapeSpace_allowed_html()); ?>></div> </div> </div><!--End inside--> </section> <?php } wp_reset_postdata(); if($paged < 2){ ?> </div> <?php if($the_query->have_posts()){ arttheme_page_view_pagination($post_id, $the_query, 'load-more'); } ?> </div> <?php } } } exit; } add_action('wp_ajax_arttheme_interface_ajax_portfolio_list', 'arttheme_interface_ajax_portfolio_list'); add_action('wp_ajax_nopriv_arttheme_interface_ajax_portfolio_list', 'arttheme_interface_ajax_portfolio_list'); ?>Regards
August 2, 2019 at 4:33 pm #19112i dont mean to unblock the youtube, i just mean, can the page content pop out as soon as they load even it end up not able to load the youtube window?
what s happening now is the whole page remain empty for so longggg until it confirm that youtube window cant be load then they show you the rest of the content.
i just want my content(text or photo) show up asap, but not to stop there and try loadind the youtube.. i am not sure if i made myself clear…August 2, 2019 at 4:34 pm #19113and also, can you tech me how to upload host video!? that will be helpful too
August 3, 2019 at 11:53 am #19114Hi,
Please use the fully embed codes, chagne
srcasdata-src, addclass="lazy", like:<iframe class="lazy" data-src="//player.vimeo.com/video/xxxx" width="1920" height="1080" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen> </iframe><iframe width="560" height="315" class="lazy" data-src="https://www.youtube.com/embed/xxxx" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen> </iframe>Regards~
August 3, 2019 at 12:20 pm #19115Hi,
Please use the hosted video codes into “Embeded Code” like:
<video controls loop class="lazy"> <source src="xxx.m4v" type="video/mp4"> <source src="xxx.ogg" type="video/ogg"> <source src="xxx.webm" type="video/webm"> </video>Add the custom CSS:
.videoWrapper video { position:absolute; left:0; top:0;bottom:0; width:100%;opacity:1; }I paste the codes into the “Raw” portfolio, you could check it.
Regards
August 4, 2019 at 7:54 am #19116thanks i will try it, but for the loadin issue, do you get what I am trying to do? thanks
August 4, 2019 at 10:09 am #19117and i am not sure where and how to use those code, can u take Tany Live as example and make change there for me? i mainly love to full fill my first request, how to let the site load up content asap and need not wait for the video content and show all at once
of cos, will be nice to know how to embeded video too, i need to upload video to library first? and i tried the code dont seem working. thanks
August 4, 2019 at 10:38 pm #191181. I changed the 2 portfolios:
http://www.secondmind.hk/wp-admin/post.php?post=1761&action=edit
see screenshot: https://drive.google.com/file/d/1ECuc4_qgLrM0Bgo8IM5OCUV4AOjC5pC8/view?usp=sharinghttp://www.secondmind.hk/wp-admin/post.php?post=595&action=edit
see screenshot: https://drive.google.com/file/d/1IqINyK-i8Ubus18gbJ9ASHuae9DXRgpq/view?usp=sharing2. Yes, you need to upload the videos to the library first. I added the hosted video to the demo http://www.secondmind.hk/2017/04/raw/
For one video, you need to upload 3 formats: m4v, ogg, and webm
Replace as your own video URLs.
see screenshot: https://drive.google.com/file/d/1yJcL7adeKSIibHvHq17prDTENx62CpL3/view?usp=sharingAugust 5, 2019 at 4:55 pm #19119Great Thanks! i will try again! you are awesome
August 6, 2019 at 8:15 am #19120Thank you very much 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.
