I already described my Problem in this thread: http://www.pagelines...-article#Item_8 with EcoPro, but this thread was closed because it seemed to be a pirated copy of EcoPro. I contacted my friend that gave me the theme, and he said that he "downloaded that somewhere", so it really is. I didn't know that, so i'm sorry. I told him that there is a free version, which i'm now using.
But the question stays the same, i want to change the Text "The latest" on the single post Page to the Post Title.
Eco Spotlight Single Post Text
Started by
silentdragon
, Jan 17 2012 03:32 PM
7 replies to this topic
#1
Posted 17 January 2012 - 03:32 PM
#2
Posted 17 January 2012 - 07:56 PM
The code for that piece taken directly from your site is:
That tells me that "The Latest" is the title that you set for that page. You can edit that in Wordpress -> Pages
<h1 class="pagetitle"> The Latest </h1>
That tells me that "The Latest" is the title that you set for that page. You can edit that in Wordpress -> Pages
#3
Posted 17 January 2012 - 08:52 PM
Isn't the code for the Spotlight in _spotlight.php?
So i know that i have to create a function for is_single and then get the article name with PHP but i don't exactly know how, i tried it but it didn't work.
<?php elseif(is_home() || is_single()):?>
<?php
if(get_option('page_for_posts')){
echo get_the_title(get_option('page_for_posts'));
}else{
e_pagelines("blog_title_text",__('The Latest', TDOMAIN));
}
?>
So i know that i have to create a function for is_single and then get the article name with PHP but i don't exactly know how, i tried it but it didn't work.
#4
Posted 17 January 2012 - 11:53 PM
The article name can be displayed with
Is that what you mean?
<?php the_title() ?>
Is that what you mean?
#5
Posted 18 January 2012 - 04:13 PM
Yes
#6
Posted 18 January 2012 - 06:06 PM
I wish I could tell you but we cannot advise you to edit the core files since all changes will be overwritten during any theme updates.
#7
Posted 18 January 2012 - 06:28 PM
Well, i managed to get it on my own with this code:
Thread can be closed or accepted or something.
<?php elseif(is_single()):?> <?php the_title(); ?>
Thread can be closed or accepted or something.
#8
Posted 18 January 2012 - 06:48 PM










