Home Forums Art WordPress Theme the archive not seem to be working

This topic contains 23 replies, has 3 voices, and was last updated by  Alex 5 months, 3 weeks ago.

Viewing 24 posts - 1 through 24 (of 24 total)
  • Author
    Posts
  • #19061

    davidtse
    Participant
    Purchased

    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

    #19066

    davidtse
    Participant
    Purchased

    i mean the portfolio icon, not working properly

    #19067

    SeaTheme
    Keymaster
    Purchased

    Hi, 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.comTwitterFacebook

    #19072

    davidtse
    Participant
    Purchased
    This reply has been marked as private.
    #19078

    SeaTheme
    Keymaster
    Purchased

    It works.
    Please don’t forget to choose a category for “Theme Options>Layout>Category for Portfolio Icon on Header”

    • This reply was modified 6 months ago by  SeaTheme.
    #19085

    davidtse
    Participant
    Purchased

    now all of a sudden the info page doesnt work… it always happen and why!!?

    #19086

    davidtse
    Participant
    Purchased

    i 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…

    #19094

    SeaTheme
    Keymaster
    Purchased

    Hi, 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.

    #19098

    davidtse
    Participant
    Purchased

    i only manually type in the URL for the page i need, the three portfolio and info page only basically, how does that a problem?

    #19099

    davidtse
    Participant
    Purchased

    and i am not sure what to remove? can u be specific? thanks alot

    #19102

    SeaTheme
    Keymaster
    Purchased

    Sure, 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.

    #19104

    davidtse
    Participant
    Purchased

    thanks 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?

    #19106

    Alex
    Participant
    Purchased

    Hi,

    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

    #19109

    SeaTheme
    Keymaster
    Purchased

    Hi 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

    #19110

    SeaTheme
    Keymaster
    Purchased

    Hi 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

    #19112

    davidtse
    Participant
    Purchased

    i 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…

    #19113

    davidtse
    Participant
    Purchased

    and also, can you tech me how to upload host video!? that will be helpful too

    #19114

    SeaTheme
    Keymaster
    Purchased

    Hi,

    Please use the fully embed codes, chagne src as data-src, add class="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~

    #19115

    SeaTheme
    Keymaster
    Purchased

    Hi,

    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

    #19116

    davidtse
    Participant
    Purchased

    thanks i will try it, but for the loadin issue, do you get what I am trying to do? thanks

    #19117

    davidtse
    Participant
    Purchased

    and 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

    #19118

    SeaTheme
    Keymaster
    Purchased

    1. 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=sharing

    http://www.secondmind.hk/wp-admin/post.php?post=595&action=edit
    see screenshot: https://drive.google.com/file/d/1IqINyK-i8Ubus18gbJ9ASHuae9DXRgpq/view?usp=sharing

    2. 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=sharing

    #19119

    davidtse
    Participant
    Purchased

    Great Thanks! i will try again! you are awesome

    #19120

    Alex
    Participant
    Purchased

    Thank you very much 🙂

Viewing 24 posts - 1 through 24 (of 24 total)

You must be logged in to reply to this topic.

Join Newsletter(FREE)

Subscribe to our newsletter to receive news & updates. We promise to not spam you, super promise!