Steffen

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: More than 5 slides on presentation page? #45660
    Steffen
    Participant

    Thank you for this information. So I have to look for WordPress slider plugins that are shortcode-callable – I hope they give this information on their project pages…

    • This reply was modified 7 years ago by Steffen.
    in reply to: Missing/not reachable link in columns text #38786
    Steffen
    Participant

    I fixed it on my own (without any knowledge in PHP, haha): With help of Google and the child theme tutorial given here I managed to find, analyze and override the function nirvana_singlecolumn_output($data) in widgets.php in my child project (functions.php). I added/changed

    
    <?php echo '<a href="'.$link.'" '.$blank.'>'; ?>
    <?php the_excerpt_max_charlength(do_shortcode($text), 90); ?>
    <?php echo '</a>'; ?>
    

    and a function which shortens the excerpt text of each random post (with a different char amount from that Nirvana uses).

    
    function the_excerpt_max_charlength($text, $charlength) {
    	$excerpt = $text;
    	$charlength++;
    
    	if ( mb_strlen( $excerpt ) > $charlength ) {
    		$subex = mb_substr( $excerpt, 0, $charlength - 5 );
    		$exwords = explode( ' ', $subex );
    		$excut = - ( mb_strlen( $exwords[ count( $exwords ) - 1 ] ) );
    		if ( $excut < 0 ) {
    			echo mb_substr( $subex, 0, $excut );
    		} else {
    			echo $subex;
    		}
    		echo '...';
    	} else {
    		echo $excerpt;
    	}
    }
    

    Problem solved

    • This reply was modified 8 years ago by Steffen.
    in reply to: Template page without menu entry (no parent)? #38551
    Steffen
    Participant

    I first made some experiments with private pages. That seemed to work for my purpose (site accessable via link, but not visible in menu), until I tried to access the page with an other browser where I was not logged in as WordPress administrator. 😉 Hmm, I’m a WordPress Newbie and didn’t really think about what ‘private’ means. 🙂

    The I tried to create a custom menu – I stopped this action a few days before, because I thought this would ruin the automatical Nirwana menu layout. But I learnt yesterday, that it is possible to model the complete menu structure and it behaves exactly sumilar. So this is an easy solution: I do not add the page to the menu, therefore it is not visible in the menu but accessible via link. Adding new menu items manually to the menu is a little bit more work than doing this in the page attribute section while creating the page, but it will not happen often.
    Thanks for your advice…

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