Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #4370

    Hello again, I customize my web services, specifically I want to remove the comments (coments Are closed). and also want to edit part of the date … (remove “comments off “) and put scm instead of “19 May 2011 …

    What documents do I edit?

    Thanks!

    http://www.scmeficiencia.es

    #46052

    Hey,

    you need to modify single.php and includes/loop-index.php

    In single.php delete following code:

    //wordpress function that loads the comments template "comments.php"
    comments_template( '/includes/comments.php');

    In loop-index.php delete:

    <span class='comment-container'><?php comments_popup_link("<strong>0</strong> ".__('Comments','avia_framework'), "<strong>1</strong> ".__('Comment' ,'avia_framework'),
    "<strong>%</strong> ".__('Comments','avia_framework'),'comments-link',
    "<strong></strong> ".__('Comments<br/>Off','avia_framework')
    ); ?>
    </span>

    and adjust the time code:

    <strong><?php the_time('M') ?> <?php the_time('Y') ?></strong>

    as you like (or replace it with scm…)

    #46053

    Hi Dude, if I change my single.php, I change the blog? because I want to keep the blog comments and also want to keep the date …

    I just want to change my services page.

    Thanks for the help!

    Change this…. http://www.scmeficiencia.es/?portfolio=idi

    Not change this… http://www.scmeficiencia.es/?page_id=56

    #46054

    traducción del español al inglés

    Hi Dude, I did the changes you propose and as I imagined, I also change the format of the blog, which I do not want.

    What I want is to change just in the “Portfolio ” to use as “services”, I have to change the same but in loop-portfolio.php?

    Thanks!

    #46055

    Hey,

    Changing single.php will change the layout of a single blog post. Archive pages (such as a category or a tag) are controlled by archive.php.

    Since you just want to change the services page, you can duplicate single.php to single-portfolio.php (look at the body class to work out the page type / template file) and remove the code Dude highlighted.

    James

    #46056

    Hi James, is what I thought at first, in this solution, exactly the same reasons you say, the question is. As I can do for that category in the blog, not shown on the bolg? but only on the partners page?

    Thanks!

    #46057

    Sorry, that question was for the other query. ;)

    #46058

    Hey,

    Have you got this question answered?

    James

    #46059

    Hola James, muchas gracias por la ayuda, todavia no se como hacerlo, la verdad, no entiendo muy bien el funcionamiento de duplicar el single.php y crear un single-portfolio.php, como puedo asignarle el single-portfolio.php a las paginas del portfolio?

    Gracias y perdon por ser tan principiante.

    Thanks!!!!

    #46060

    Hey,

    could you write the answer/question in english please?

    #46061

    Hi James, thank you very much for the help, still do not know how, really, do not quite understand the operation of doubling the single.php and create a single-portfolio.php. ¿how I can assign the single-portfolio.php to the pages of the portfolios, in my case the “servise”?

    Thanks and sorry for being such a beginner.

    #46062

    Ok – I uploaded a modified version of loop-index.php – just replace the original one with the modified version: http://www.mediafire.com/?q948okcqj72cn7p

    Afterwards open up single.php and replace:

    comments_template( '/includes/comments.php');

    with:

    if (get_post_type() != "portfolio"){
    //wordpress function that loads the comments template "comments.php"
    comments_template( '/includes/comments.php');
    }

    #46063

    Thanks !!!!! you rock. Tomorrow without fail I put into practice.

    #46064

    Please report back if it doesn’t work :)

    #46065

    Hi Dude, I could finally do what you said and replace loop-modified index.php I passed. Thanks.

    What you see now is actually in my “services”no longer appears at the end “coments are close”.

    But I still have the same problem, I still get the green square with the date and down, the legend of “comments off”.

    Where do I change it to amend the portfolio only “services”?

    Thanks!!!

    #46066

    Ok,

    1) Make a copy of includes/loop-index.php

    2) Rename the copy to loop-indexportfolio.php

    In loop-indexportfolio.php delete following code:

    <!--meta info-->
    <div class="blog-meta">

    <span class='post-date-comment-container'>
    <span class='date-container'><span><?php the_time('d') ?></span><strong><?php the_time('M') ?> <?php the_time('Y') ?></strong></span>
    <span class='comment-container'><?php comments_popup_link("<strong>0</strong> ".__('Comments','avia_framework'), "<strong>1</strong> ".__('Comment' ,'avia_framework'),
    "<strong>%</strong> ".__('Comments','avia_framework'),'comments-link',
    "<strong></strong> ".__('Comments<br/>Off','avia_framework')
    ); ?>
    </span>

    </span>

    </div><!--end meta info-->

    Afterwards open up single.php and replace

    get_template_part( 'includes/loop', 'index' );

    with:

    if (get_post_type() != "portfolio"){
    get_template_part( 'includes/loop', 'index' );
    }else{
    get_template_part( 'includes/loop', 'indexportfolio' );
    }

    #46067

    Hi Dude, Thank you so much, works great!

    You Rocks!!

    My next clinet also go with one of your themes.

    A Salute!

    Thank you very much!

    #46068

    Glad that I could help you :)

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

The topic ‘Edit Portfolio view (only servicios, 9 pages)’ is closed to new replies.