Deprecated: Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /var/www/html/wp-includes/functions.php on line 5383

Masonry layout doesn't work

New Front EN Support Forums Ikebana Theme Support Masonry layout doesn't work

Viewing 5 posts - 21 through 25 (of 25 total)
  • Author
    Posts
  • #2162
    mmsatori
    Keymaster

    Hey Csaba,

    None of these are really theme issues, rather php and css tricks, yet as a Christmas present here goes:

    1). Instead of

    #nav-primary ul li:first-child a {
    visibility: hidden;
    }

    try using

    #nav-primary ul li:first-child a {
    text-indent: -9999px;
    display: block;
    }

    2). The code you were using does not match the code from the example I’ve given earlier, please try this:

    ID , 'tagportfolio' );
    print_r($p_terms);
    if ( $p_terms && ! is_wp_error( $p_terms ) ) {
    $term_links = array();
    foreach ( $p_terms as $p_term ) {
    $term_links[] = $p_term->name;
    }
    $termslinks = join( ", ", $term_links );
    echo '

    '.$termslinks.'

    ';
    }
    ?>

    For the tags to display, you will need to disable the “Truncate text on portfolio and blog pages” script from the “header-functions.php” file, please look at lines 625-647 of the file for it. Moreover, I recommend inserting the tag code before the content of the box, not after it, since it may remain pushed beyond the post boundary by the content.

    3). You can do it with CSS:

    #respond .comment-form-url { display: none; }

    Sincerely,
    Andrii / Satori Studio

    #2169
    Nagytalp
    Participant

    Hi Andrii,

    I know and I owe with some beers to You, but at this moment You are my hero and the master of the known universe. I have only some brainstorming and no coding knowledge.

    Thank You for the first solution, it’s perfect!
    The second is basically work but it shows the whole array.

    I shame about the topic title. There I was stupid too.

    #2177
    mmsatori
    Keymaster

    Hey Csaba,

    if you want to display only the first tag, you can use this:


    ID , 'tagportfolio' );
    print_r($p_terms);
    if ( $p_terms && ! is_wp_error( $p_terms ) ) {
    $term_links = array();
    foreach ( $p_terms as $p_term ) {
    $term_links[] = $p_term->name;
    }
    $termslinks = $term_links[0];
    echo '

    '.$termslinks.'

    ';
    }
    ?>

    Sincerely,
    Andrii / Satori Studio

    #2198
    Nagytalp
    Participant

    Hello Andrii,

    Thank You for the lot of helpfull tips. I wish You a Merry Christmas and a successfull New Year!

    Best wishes, Csaba.

    #2206
    mmsatori
    Keymaster

    Thanks, you too have a great start to the upcoming year, Csaba!

    Best,
    Andrii / Satori Studio

Viewing 5 posts - 21 through 25 (of 25 total)
  • You must be logged in to reply to this topic.