Forum Replies Created
-
AuthorPosts
-
delanthearParticipant
Thanks!
delanthearParticipantVery very weird. Just created a new install, added all the same themes and plugins and the option isn’t there. I’ve no idea how I made it appear!
Never mind. Thanks for adding the ability 😀
delanthearParticipantSomething very odd going on. I’ve don’t have a plugin for it, and I’m using your theme and the override for displaying it needs to be placed in the functions.php file.
My other blog, using default twenty fifteen theme, and no plugins (as I don’t use excepts at all on that blog) doesn’t display excepts, but it’s there in the screen options drop down to enable!
delanthearParticipantAh! It’s hidden by default on pages. You turn it on from the screen options:
delanthearParticipantWeird. It’s just there:
Website: www.rockrunrelax.co.uk
delanthearParticipantConfirmed fixed in 1.3.0
delanthearParticipantJust upgraded to Fluida 1.3.0 The new theme doesn’t pull anything for except at all now even though it’s populated on the pages.
delanthearParticipantI can see your google analytics tag in your front page fine? Have you fixed it? Or is it a different page that isn’t reporting?
delanthearParticipantOk, the bug is in/below the_archive_title(); which is called in fluida_header_image() in core.php. When the alt tag is populated for an author page, it does something weird!
I’m overriding with a child theme fix/hack (just not populating the alt tag for the header)
- This reply was modified 7 years ago by delanthear.
delanthearParticipantweird. the html I’m posting is being trimmed by this editor, but you can see the problem stilI.
delanthearParticipantI’m using a landing page, with the relevant piece of code outputting the page content commented out in a child theme function
delanthearParticipantThis is the bit I’m commenting out:
function fluida_lpindex() { $fluida_landingpage = cryout_get_option ('fluida_landingpage'); $fluida_lpposts = cryout_get_option ('fluida_lpposts'); if ( is_page() ) { // get_template_part( 'content/content', 'page' ); <-------- } else {
delanthearParticipantGreat 🙂
delanthearParticipantDoes that only work if the front page is a block? I’ve disabled the post list, but the content on the Homepage page still appears. See two images.
Website: www.rockrunrelax.co.uk
delanthearParticipantHere is the function to override in a child theme if you need it:
function fluida_lpblocks() { $maintitle = cryout_get_option('fluida_lpblockmaintitle'); $maindesc = cryout_get_option('fluida_lpblockmaindesc'); $pageids = cryout_get_option( array( 'fluida_lpblockone', 'fluida_lpblocktwo', 'fluida_lpblockthree', 'fluida_lpblockfour') ); $icon = cryout_get_option( array( 'fluida_lpblockoneicon', 'fluida_lpblocktwoicon', 'fluida_lpblockthreeicon', 'fluida_lpblockfouricon' ) ); $blockscontent = cryout_get_option( 'fluida_lpblockscontent' ); $blocksclick = cryout_get_option( 'fluida_lpblocksclick' ); $count = 1; $pagecount = count (array_filter( $pageids ) ); if ( empty( $pagecount ) ) return; ?> <section class="lp-blocks lp-blocks-rows-<?php echo absint( $pagecount ); ?>"> <?php if( ! empty( $maintitle ) || ! empty( $maindesc ) ) { ?> <div class="lp-section-header"> <?php if( ! empty( $maintitle ) ) { ?><h2 class="lp-section-title"> <?php echo do_shortcode( wp_kses_post( $maintitle ) ); ?></h2><?php } ?> <?php if( ! empty( $maindesc ) ) { ?><div class="lp-section-desc"> <?php echo do_shortcode( wp_kses_post( $maindesc ) ); ?></div><?php } ?> </div> <?php } ?> <div class="lp-blocks-inside"> <?php foreach ( $pageids as $key => $pageid ) { if ( !empty( $pageid ) ) { $page = get_post( $pageid ); switch ( $blockscontent ) { case '2': $text = ''; break; case '1': $text = $page->post_content; break; case '0': default: if ( ! empty( $page->post_excerpt ) ) { $text = fluida_custom_excerpt( $page->post_excerpt ); } else { $text = fluida_custom_excerpt( $page->post_content ); } break; }; $data[$count] = array( 'title' => $page->post_title, 'text' => $text, 'icon' => ( ( $icon[$key . 'icon'] != 'no-icon' ) ? $icon[$key . 'icon'] : '' ), 'link' => get_permalink( $pageid ), 'click' => $blocksclick, 'id' => $count, ); fluida_lpblock_output( $data[$count] ); $count++; } } ?> </div> </section> <?php } //fluida_lpblocks()
delanthearParticipantFixed via overriding fluida_lpindex() and adding a hack. Would be nice to have an option in the theme to prevent from page content/. You really don’t need it with everything else 😀
delanthearParticipantI’ve fixed this with a child theme. It looks like that to have post excepts being used properly, a tweak can be made to fluida_custom_excerpt in fluida/includes/core. It doesn’t look at that field at all. It could be tweaked to look for a post excerpt before creating one from the post.
I’ve done it in a hacky way, but might spend some time adding this to the right function.
-
AuthorPosts