Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter gpont

    (@gpont)

    thanks again.

    resolved

    Thread Starter gpont

    (@gpont)

    opps! all pages are working correctly. Probably were cashed.

    Thanks again formyour kind and immediate help, congrats!

    Gpont

    Thread Starter gpont

    (@gpont)

    Thanks! Great! Much more better after following your advice. But the situation remains at first and last menu item. (Working principle and Blog)

    Funny. Any idea?

    Thread Starter gpont

    (@gpont)

    no. The site worked correctly and I can not say what went wrong

    Thread Starter gpont

    (@gpont)

    3.1.14

    Thread Starter gpont

    (@gpont)

    Thanks, d4z_c0nf!

    Thread Starter gpont

    (@gpont)

    Bingo! Call yourself simply magician ??

    Many thanks for your efforts and valuable help!

    May i mark this topic resolved?

    Thread Starter gpont

    (@gpont)

    I cleared the content of my blog.php file, pasted your content into it and saved. All other parts are intact. Where did I fail?

    Thread Starter gpont

    (@gpont)

    Fatal error: Cannot redeclare my_more_link() (previously declared in /var/www/data1/S4-168/foamfatale/wp-content/themes/customizr-child/functions.php:61) in /var/www/data1/S4-168/foamfatale/wp-content/themes/customizr-child/blog.php on line 32

    Thread Starter gpont

    (@gpont)

    Hm. NExt time I will close.

    I do not see the content to be trimmed. I see code itself above the posts then all posts completely. I tested in several browsers.

    Thread Starter gpont

    (@gpont)

    You see that I don’t know the formatting buttons above ??

    I did what you recommended, the blog.php looks like below. See the result on the page ??

    `<?php
    /*
    * Template Name: Blog Posts
    * @package Customizr
    * @since Customizr 3.0.12
    */
    ?>

    <?php do_action( ‘__before_main_wrapper’ ); ##hook of the header with get_header ?>
    <?php tc__f(‘rec’ , __FILE__ , __FUNCTION__ ); ?>
    <div id=”main-wrapper” class=”container”>

    <?php do_action( ‘__before_main_container’ ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)…and whatever you need! ?>

    <div class=”container” role=”main”>
    <div class=”row”>

    <?php do_action( ‘__before_article_container’); ##hook of left sidebar?>

    // properly display more tag
    global $more;
    $more = 0;

    // change “more” text
    add_filter( ‘the_content_more_link’, ‘my_more_link’, 10, 2 );
    function my_more_link( $more_link, $more_link_text ) {
    // standard customizr “more” for the content, change this string if you want, e.g. => $custom_more = “Read more…” ;
    $custom_more = __( ‘Continue reading <span class=”meta-nav”>→</span>’ , ‘customizr’ );
    return str_replace( $more_link_text, $custom_more, $more_link );
    }

    ?>

    <?php query_posts(‘post_type=post&post_status=publish&posts_per_page=10&paged=’. get_query_var(‘paged’)); ?>

    <div class=”<?php echo tc__f( ‘__screen_layout’ , tc__f ( ‘__ID’ ) , ‘class’ ) ?> article-container”>

    <?php do_action (‘__before_loop’);##hooks the header of the list of post : archive, search… ?>

    <?php if ( tc__f(‘__is_no_results’) || is_404() ) : ##no search results or 404 cases ?>
    <article <?php tc__f(‘__article_selectors’) ?>>
    <?php do_action( ‘__loop’ ); ?>
    </article>
    <?php endif; ?>

    <?php if ( have_posts() && !is_404() ) : ?>
    <?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?>
    <?php the_post(); ?>
    <article <?php tc__f(‘__article_selectors’) ?>>
    <?php
    do_action( ‘__loop’ );
    ?>
    </article>
    <?php endwhile; ?>

    <?php endif; ##end if have posts ?>

    <?php do_action (‘__after_loop’);##hook of the comments and the posts navigation with priorities 10 and 20 ?>

    </div><!–.article-container –>

    <?php wp_reset_query(); ?>

    <?php do_action( ‘__after_article_container’); ##hook of left sidebar?>

    </div><!–.row –>
    </div><!– .container role: main –>

    <?php do_action( ‘__after_main_container’ ); ?>

    </div><!–#main-wrapper”–>

    <?php do_action( ‘__after_main_wrapper’ );##hook of the footer with get_get_footer ?>

    Thread Starter gpont

    (@gpont)

    posted twice ??

    Thread Starter gpont

    (@gpont)

    I am not experienced in php, so I copy here the template (called blog.php), pls do the suggested modification than I will upload the modified file:

    <?php
    /*
    * Template Name: Blog Posts
    * @package Customizr
    * @since Customizr 3.0.12
    */
    ?>

    <?php do_action( ‘__before_main_wrapper’ ); ##hook of the header with get_header ?>
    <?php tc__f(‘rec’ , __FILE__ , __FUNCTION__ ); ?>
    <div id=”main-wrapper” class=”container”>

    <?php do_action( ‘__before_main_container’ ); ##hook of the featured page (priority 10) and breadcrumb (priority 20)…and whatever you need! ?>

    <div class=”container” role=”main”>
    <div class=”row”>

    <?php do_action( ‘__before_article_container’); ##hook of left sidebar?>

    <?php query_posts(‘post_type=post&post_status=publish&posts_per_page=10&paged=’. get_query_var(‘paged’)); ?>

    <div class=”<?php echo tc__f( ‘__screen_layout’ , tc__f ( ‘__ID’ ) , ‘class’ ) ?> article-container”>

    <?php do_action (‘__before_loop’);##hooks the header of the list of post : archive, search… ?>

    <?php if ( tc__f(‘__is_no_results’) || is_404() ) : ##no search results or 404 cases ?>
    <article <?php tc__f(‘__article_selectors’) ?>>
    <?php do_action( ‘__loop’ ); ?>
    </article>
    <?php endif; ?>

    <?php if ( have_posts() && !is_404() ) : ?>
    <?php while ( have_posts() ) : ##all other cases for single and lists: post, custom post type, page, archives, search, 404 ?>
    <?php the_post(); ?>
    <article <?php tc__f(‘__article_selectors’) ?>>
    <?php
    do_action( ‘__loop’ );
    ?>
    </article>
    <?php endwhile; ?>

    <?php endif; ##end if have posts ?>

    <?php do_action (‘__after_loop’);##hook of the comments and the posts navigation with priorities 10 and 20 ?>

    </div><!–.article-container –>

    <?php wp_reset_query(); ?>

    <?php do_action( ‘__after_article_container’); ##hook of left sidebar?>

    </div><!–.row –>
    </div><!– .container role: main –>

    <?php do_action( ‘__after_main_container’ ); ?>

    </div><!–#main-wrapper”–>

    <?php do_action( ‘__after_main_wrapper’ );##hook of the footer with get_get_footer ?>

    Thread Starter gpont

    (@gpont)

    To have a blog page in cuztomizr! is tricky. I had to make a special page template, my is called “blog posts” and drive the posts on this page. So appear the posts as you see on website.
    Therefore I can not test it with twentyfourteen theme. I tried, but only the “blog posts” page can be seen. On the right side we can see the recent and archive posts as well, clicking on them we can call that post.

    I switch to twentyfourteen for you for a while if you want to check.

    Thread Starter gpont

    (@gpont)

    I.g. at the begining of the last post I wrote in the post editor (viewing text):
    METHOD FOR COMPARISON OF DIFFERENT TANK FIRE EXTINGUISHING TECHNOLOGIES – PART 3.
    <h4>How can we improve the success rate of the Storage Tank fire fighting??We have good news for the Fire Experts: we have the opportunity for positive influence on the measured efficiency by changing the parameters of the tank fire fighting.<!–more–></h4>
    The optimum performance we can achieve in two steps:

    but still…

    I checked all plugins, no plugin to effect the appearance of posts ??

Viewing 15 replies - 1 through 15 (of 21 total)