- This topic has 5 replies, 2 voices, and was last updated 11 years, 9 months ago by Dane.
-
AuthorPosts
-
March 17, 2013 at 8:52 pm #5278DaneMember
Hi,
This is first time I have used wordpress and have managed to get catch everest theme running.
It was because of your detailed documentation and forums that I have been able to set up different widgets also and test out the bilingual RTL settings by modifying the rtl.css.
Problem:
The problem is basic I’m sure and I may be missing something, but when I change the text on the main slider, it does not reflect the changes that I made in the catcheverest-functions.php.
Is there any other file which affects the change?
Thanks in advance..
Daniels.
March 17, 2013 at 9:04 pm #5281SakinKeymaster@Dane: When you are editing the core theme file please try to build child theme. If you have change stuff for slider. Please there is cache which you need to clear to reflect the change. The best way to clear the cache will be to change any value in your Theme Options panel and click on save.
March 18, 2013 at 5:58 pm #5375DaneMemberSakin, Hi…
Clearing cache as you described didn’t work.
Its very strange and seems like its hard coded somewhere.
i have pasted the code below from catcheverest-functions.phpAs I mentioned, I am new to this so I cant change any coding.. just the text on front end where it appears in the files. I have not touched other files either.
I’m now trying to learn how child themes work… if that will be solve my problem.
thanks for your help anyway.CODE:
/**
* Shows Default Slider Demo if there is not iteam in Featured Post Slider
*/
function catcheverest_default_sliders() {
//delete_transient( ‘catcheverest_default_sliders’ );if ( !$catcheverest_default_sliders = get_transient( ‘catcheverest_default_sliders’ ) ) {
echo ‘<!– refreshing cache –>’;
$catcheverest_default_sliders = ‘
<div id=”main-slider” class=”container”>
<section class=”featured-slider”>
<article class=”post hentry slides displayblock”>
<figure class=”slider-image”>
<a title=”Mount Everest” href=”#”>
<img src=”‘. get_template_directory_uri() . ‘/images/slider1.jpg” class=”wp-post-image” alt=”Mount Everest” title=”Mount Everest”>
</a>
</figure>
<div class=”entry-container”>
<header class=”entry-header”>
<h1 class=”entry-title”>
<a title=”Mount Everest” href=”#”>Mount Everest mountain</a>
</h1>
</header>
<div class=”entry-content”>
<p>Mount Everest is the Earth\’s highest mountain, with a peak at 8,848 metres above sea level and the 5th tallest mountain measured from the centre of the Earth. It is located in the Nepal.</p>
</div>
</div>
</article><!– .slides –><article class=”post hentry slides displaynone”>
<figure class=”slider-image”>
<a title=”Text For Image Slider” href=”#”>
<img src=”‘. get_template_directory_uri() . ‘/images/slider2.jpg” class=”wp-post-image” alt=”For Image Slider” title=”Text For Image Slider”>
</a>
</figure>
<div class=”entry-container”>
<header class=”entry-header”>
<h1 class=”entry-title”>
<a title=”Text For Image Slider” href=”#”>Text For Image Slider</a>
</h1>
</header>
<div class=”entry-content”>
<p>This is a sample text to display on image slider. This is a sample text to display on image slider. This is a sample text to display on image slider. This is a sample text to display on image slider.</p>
</div>
</div>
</article><!– .slides –>
</section>
<div id=”slider-nav”>
<a class=”slide-previous”><</a>
<a class=”slide-next”>></a>
</div>
<div id=”controllers”></div>
</div><!– #main-slider –>’;set_transient( ‘catcheverest_default_sliders’, $catcheverest_default_sliders, 86940 );
}
echo $catcheverest_default_sliders;
} // catcheverest_default_slidersMarch 18, 2013 at 6:00 pm #5376SakinKeymaster@Dane: just change
//delete_transient( 'catcheverest_default_sliders' );
to
delete_transient( 'catcheverest_default_sliders' );
March 18, 2013 at 6:04 pm #5377SakinKeymaster@@Dane: But I don’t understand why you are changing those function. Don’t edit any core theme file. To add Featured Post Slider see this support thread http://catchthemes.com/support-forum/topic/change-featured-image-slider/
March 19, 2013 at 12:02 pm #5406DaneMemberSakin,
I only replaced original text with this… and like I mentioned before, did not change any part of code:
1. alt=”For Image Slider” title=”Text For Image Slider”>
2. <a title=”Text For Image Slider” href=”#”>Text For Image Slider</a>
3. <p>This is a sample text to display on image slider. This is a sample text to display on image slider. This is a sample text to display on image slider. This is a sample text to display on image slider.</p>And thank you, removing the “\\”
before
“
delete_transient( 'catcheverest_default_sliders' );
”is displaying the text change immediately.
Dane
-
AuthorPosts
- The topic ‘Catch Everest – Slider Text’ is closed to new replies.