New Front EN › Support Forums › Ikebana Theme Support › Masonry layout doesn't work
- This topic has 24 replies, 2 voices, and was last updated 11 years, 10 months ago by  satori. satori.
- 
		AuthorPosts
- 
		
			
				
December 18, 2013 at 1:29 pm #2162 satoriKeymaster satoriKeymasterHey 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 StudioDecember 18, 2013 at 2:43 pm #2169Nagytalp ParticipantHi 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. December 19, 2013 at 9:12 am #2177 satoriKeymaster satoriKeymasterHey 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 StudioDecember 20, 2013 at 3:16 pm #2198Nagytalp ParticipantHello Andrii, Thank You for the lot of helpfull tips. I wish You a Merry Christmas and a successfull New Year! Best wishes, Csaba. December 23, 2013 at 3:51 pm #2206 satoriKeymaster satoriKeymasterThanks, you too have a great start to the upcoming year, Csaba! Best, 
 Andrii / Satori Studio
- 
		AuthorPosts
- You must be logged in to reply to this topic.
