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!
Edit Portfolio view (only servicios, 9 pages)
18 posts from 3 voices-
Posted 2 years ago #
-
Hey,
you need to modify single.php and includes/loop-index.phpIn 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...)
Posted 2 years ago # -
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
Posted 2 years ago # -
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!
Posted 2 years ago # -
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
Posted 2 years ago # -
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!Posted 1 year ago # -
Sorry, that question was for the other query. ;)
Posted 1 year ago # -
Hey,
Have you got this question answered?
James
Posted 1 year ago # -
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!!!!Posted 1 year ago # -
Hey,
could you write the answer/question in english please?Posted 1 year ago # -
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.Posted 1 year ago # -
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'); }Posted 1 year ago # -
Thanks !!!!! you rock. Tomorrow without fail I put into practice.
Posted 1 year ago # -
Please report back if it doesn't work :)
Posted 1 year ago # -
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!!!
Posted 1 year ago # -
Ok,
1) Make a copy of includes/loop-index.php2) 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' ); }Posted 1 year ago # -
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!
Posted 1 year ago # -
Glad that I could help you :)
Posted 1 year ago #
Reply
You must log in to post.














