WordPress.org

Ready to get started?Download WordPress

Forums

Code change to fix slider? WordPress 3.4.2 (not a plugin) (4 posts)

  1. scun10
    Member
    Posted 1 year ago #

    My slider in my theme stopped working when I upgraded to WordPress 3.4.2. Below is the code. Can someone please help? Thank you!

    <header>
                		<div id="fwslider">
    							<?php
    						if(of_get_option('slide2_1') or of_get_option('slide2_2') or of_get_option('slide2_3'))
    						{
    
    							for($i=1;$i<=3;$i++)
    								{
    									if(of_get_option('slide2_'.$i))
    									{
    										if(of_get_option('slidelink2_'.$i))
    											echo '
    
    												<a href="' . of_get_option('slidelink2_'.$i) . '">
    													<img src="' . of_get_option('slide2_'.$i) . '" />
    												</a>
    
    											';
    										else
    											echo '
    
    												<img src="' . of_get_option('slide2_'.$i) . '" />
    
    											';
    									}
    
    								}
    								for($i=4;$i<=9;$i++)
    								{
    									if(of_get_option('slide2_'.$i))
    										if(of_get_option('slidelink2_'.$i))
    											echo '
    
    												<a href="' . of_get_option('slidelink2_'.$i) . '">
    													<img src="' . of_get_option('slide2_'.$i) . '" />
    												</a>
    
    											';
    										else
    											echo '
    
    												<img src="' . of_get_option('slide2_'.$i) . '" />
    
    											';
    								}
    						} else {
    							echo '
    							<a href="http://themeforest.net/user/KarmaThemes/portfolio"><img src="http://www.karmathem.es/quality/wp-content/themes/quality/images/sliderimg.jpg" /></a>
    						   	<a href=""><img src="http://www.karmathem.es/quality/wp-content/themes/quality/images/sliderimg2.jpg" /></a>
    						   	<a href=""><img src="http://www.karmathem.es/quality/wp-content/themes/quality/images/sliderimg3.jpg" /></a>	';
    						}
    
    							?>
    
                     	</div>
    
    		</header>
  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    What theme?

  3. scun10
    Member
    Posted 1 year ago #

    It's called Quality by Karma. They just closed down their theme services unfortunately so I'll have to switch eventually but was hoping to fix this issue for the time being.

  4. idesignstudio
    Member
    Posted 1 year ago #

    @scun10
    Get rid of this theme as soon as possible. Waste of time to try to make it work. The whole website dashboard is messed up after the WP update on a client website. I lost the client because of this theme and lack of support.

    Never buy anything from KarmaThemes as they are just washing their hands with their poorly coded themes by just dropping them. Very difficult to trust them on anything new they create. They should go back to school to learn how to code properly with WP and then try to do business again.

    The cheap way of dealing the site for our client went all way quite expensive. Do not make our mistake!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.