Website Coding

Stuck on a line of code? Find resources and post your coding questions here.

Forum Sponsor (Advertise with us)
Reply
 
Thread Tools Display Modes
    #1 (permalink)  
Old 12-09-2009
Elenora's Avatar
Contributing Member
Company name: Virtual Managing Associates
 
Join Date: Feb 2008
Location: Laurentians, Quebec, Cana
Posts: 79
Default PHP anyone?
Good day to all,

Ok, I have a bit of a problem here, and after reading a few post in the coding section, I beleive that there may be a light at the end of the tunnel!


Story line...
  • I am presently working on a Wordpress theme called Flexx Professional (latest version). One of the top features of this theme is that it offers ‘Rotating’ images in the header. In other words, once you have set up your background, you have a choice in inserting different ‘images’ as a header with fade value etc.
  • This theme is CMS ready, and is perfect for building a website and blog.
  • Now, the ‘Rotating’ image feature is applicable to all pages. In other words, you do not have a choice. From a static page to your blog, this feature is ever present.

Question:
How does one change the coding in this case php, so that you may have a ‘single’ image on the blog page and single post page? In other words, no rotating images, and only ‘one’ image as header.


What have I tried?
  • I have installed the Dynamic Headers 3.4.7 plugin, but to save my life, 'dropping' the piece of php coding that they recommend into the header.php file does not work. i.e. header is doubled or does not ‘rotate’.
  • I have looked into the php Conditional Tags...I almost have it figured out…but still not working .
  • I have posted at the Wordpress forum...and have not found the right answer yet!


So, what I am asking here is the following:
What is the coding to use to create the header on the page? And where should it be added..in the header.php or index.php (have tried both )
I have a feeling that I have it almost figured out with the Conditional Tags…still something is missing!!


Any suggestions is more than welcomed and you can PM me if you wish to do so!


Thanking you all in advance!
__________________
Christiane Jechoux
Virtual Managing Associates
Reply With Quote
    #2 (permalink)  
Old 12-10-2009
Business-Bytes's Avatar
Resident Member
Company name: SunRise Virtual Solutions
 
Join Date: Jun 2009
Location: Iowa
Posts: 1,043
Blog Entries: 1
Send a message via Skype™ to Business-Bytes
Default Re: PHP anyone?
Not sure I completely understand, but I'll give this a shot. If you want to disable the rotating images, you could try commenting out the javascript that runs the crossslider - first found in the <head> of the document:
Code:
<script type='text/javascript' src='http://flexxtheme.ithemes.com/professional/wp-content/themes/FlexxProfessional/lib/featured-images/js/jquery.cross-slide.js?ver=2.7-RC1'></script>
And then further down is this:
Code:
<script type='text/javascript'>
		/* <![CDATA[ */
			jQuery(function($) {$(document).ready(function() {
				$('#title').crossSlide(
					{sleep: 2, fade: 1, debug: true},
					[
					{src: 'http://flexxtheme.ithemes.com/professional/wp-content/uploads/2008/12/flexx-professional-header1.jpg', href: 'http://flexxtheme.ithemes.com/professional'},
{src: 'http://flexxtheme.ithemes.com/professional/wp-content/uploads/2008/12/flexx-professional-header1b.jpg', href: 'http://flexxtheme.ithemes.com/professional'},
{src: 'http://flexxtheme.ithemes.com/professional/wp-content/uploads/2008/12/flexx-professional-header2.jpg', href: 'http://flexxtheme.ithemes.com/professional'},
{src: 'http://flexxtheme.ithemes.com/professional/wp-content/uploads/2008/12/flexx-professional-header2b.jpg', href: 'http://flexxtheme.ithemes.com/professional'}
					]
				);
			});});
		/* ]]> */
	</script>
This is right before the closing </head> tag. Your code might look a bit different because your path to the file(s) will be different.

I would either comment out this code, or cut/paste it into a .txt file in case you want it back or this isn't solving the problem.

Not sure if this will solve your problem - or if I am understanding what you are talking about for sure. I think you just want a stationary, regular header image, and not the sliding stuff.
__________________
Jules, SunRise Virtual Solutions - WordPress Customization & XHTML/CSS Web Sites
Reply With Quote
    #3 (permalink)  
Old 12-10-2009
Elenora's Avatar
Contributing Member
Company name: Virtual Managing Associates
 
Join Date: Feb 2008
Location: Laurentians, Quebec, Cana
Posts: 79
Default Re: PHP anyone?
Thank you for your reply!


And yes, I do want to disable it, but only on one page, which in this case is the Blog page, and single post page.

You see, this is presently being used as a website, with blog attached. So on the website pages the Rotating headers are ok, it's only the blog side that needs to be changed.

On the other hand, you just made me realize that I never did look at the Javascript..

Thank you for the code I am going to try this and see...!
__________________
Christiane Jechoux
Virtual Managing Associates
Reply With Quote
    #4 (permalink)  
Old 12-24-2009
Tess's Avatar
Senior Member
Company name: Codehead, LLP
Latest blog post: SEO Q&A
 
Join Date: Apr 2007
Location: Portland, OR
Posts: 9,131
Blog Entries: 3
Default Re: PHP anyone?
Jules to the rescue
Just checking in to see if you were able to resolve your issue Christiane?
__________________
Create a welcome packet for new clients with this guide and free templates!

(Available in PDF and Kindle versions)
Reply With Quote
    #5 (permalink)  
Old 12-26-2009
Elenora's Avatar
Contributing Member
Company name: Virtual Managing Associates
 
Join Date: Feb 2008
Location: Laurentians, Quebec, Cana
Posts: 79
Default Re: PHP anyone?
Thank you Tess!

To be honest...No! Which I did find agravating to say the least! Also, being a total 'newbie' to php and studborn on top of that...well, needless to say that I lost numerous hours working around something that was totally 'alien' to me!

In the end, realizing that I was loosing more time than anything, I simply moved on!

I know, this is not the way to do things, and I usualy will dig until I do find the answer, but in this case this is my new Wordpress website that I am working on, and it has to be out by the first week of January 2010!!

So ... I found another template, and started all over again!

Now, if you do have an answer...I would love to hear it, as I am working more and more with php, and hey, there is always something new to learn!

All the best in the New Year!
__________________
Christiane Jechoux
Virtual Managing Associates
Reply With Quote
    #6 (permalink)  
Old 01-18-2010
Codehead's Avatar
Administrator
Company name: Codehead LLP
My latest blog post: Mac Performance Benchmark App
 
Join Date: Apr 2007
Location: WA
Posts: 175
Default Re: PHP anyone?
I misunderstood your question at first but in order for me to be able to help you, I must see the actual code, if you paste the header code in here, I will be able to look at it and let you know how this can be done...
__________________
"Imagination is more important than knowledge."
Albert Einstein
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -4. The time now is 11:19 AM.

International Virtual Assistants Association
Project Management for Virtual Assistants
Work from Home | Become A Virtual Assistant
Virtual Assistant Directory
Affordable Logo Design
Virtual Assistant Contracts
Virtual Assistant Forums Advertising

© Virtual Assistant Forums 2012
All content and images are protected under copyright law and may not be reproduced in any way without express written consent.