Jump to content


Photo

Eco Spotlight Single Post Text


  • Please log in to reply
7 replies to this topic

#1 silentdragon

silentdragon

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 17 January 2012 - 03:32 PM

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.

#2 Jenny

Jenny

    Advocate

  • Unicorn Store Dev

  • 2924 posts
  • LocationWV
  • Country: Country Flag

Posted 17 January 2012 - 07:56 PM

The code for that piece taken directly from your site is:

 <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 silentdragon

silentdragon

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 17 January 2012 - 08:52 PM

Isn't the code for the Spotlight in _spotlight.php?

 <?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 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 17 January 2012 - 11:53 PM

The article name can be displayed with
 <?php the_title() ?>

Is that what you mean?

#5 silentdragon

silentdragon

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 18 January 2012 - 04:13 PM

Yes

#6 Jenny

Jenny

    Advocate

  • Unicorn Store Dev

  • 2924 posts
  • LocationWV
  • Country: Country Flag

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 silentdragon

silentdragon

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 18 January 2012 - 06:28 PM

Well, i managed to get it on my own with this code:
 <?php elseif(is_single()):?>
	<?php the_title(); ?>

Thread can be closed or accepted or something.

#8 Jenny

Jenny

    Advocate

  • Unicorn Store Dev

  • 2924 posts
  • LocationWV
  • Country: Country Flag

Posted 18 January 2012 - 06:48 PM

:)