Gustavius
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Load different header on HomepageThanks for the reply Andrew…
I tried this [hope it’s right]:
<?php if ( is_front_page() ) : get_header('header-home.php'); else : exit("unable to open file ($filename)"); endif; ?>Homepage opens up as usual with no header and as soon as I go to the any other page it outputs unable to open file ($filename). So I guess the php is running fine but something is wrong with my header :(.
I have a javascript running: Part of my header.php code looks like this…
</head> <body <?php body_class(); ?>> <div id="wrapper" class="hfeed"> <?php if ( is_front_page() ) : get_header('header-home.php'); elseif ( is_404() ) : get_header('404'); else : get_header('header-site.php'); endif; ?> <nav class id="clearfix">And my header-home.php reads as:
<?php wp_head(); ?> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery-1.6.3.min.js"></script> <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.spritely-0.6.js"></script> <script type="text/javascript"> (function($) { $(document).ready(function() { $('#hill1').pan({fps: 30, speed: 0.5, dir: 'left', depth: 70}); }); })(jQuery); </script> </head> <body <?php body_class(); ?>> <div id="wrapper" class="hfeed"> <header > <div id="header"> <div id="banner" class="banner"> <div id="hill1" class="banner"> <div id="siener"> <div id="logo_banner"> <!-- <div id="logo"></div> --> <div id="image"> <a><img class="header" src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="Vaandel Uitgewers.co.za" /></a> </div> </div> </div> </div> </header>Mayeb WP E-commerce does have that option (since it allows activation across all sub-sites or just a single sub-site) but I’m not sure. Check out the Getshopped forum.
Yes. Different products display on different sub- language sites. Just add the products on the relevant language dashboard.
I didn’t know about that plug-in, but yes, it seems to be the same. 🙂
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] MultisiteThat’s a dissapointment! It’s such a great plug-in!
Any other suggestions EXCEPT qtranslate – I had a LOT of problems with it to try and get Afrikaans working. I need something that will work with WP E-commerce. The only other option seems to be WPML.
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] MultisiteThanks Chouby!
But I still need to know how I can redirect a user to any language specific sub-site in a WP multi-site set-up when they click on a flag or language selection. At the moment polylang only changes the language for the current sub-site.
In other words:
At the moment if I am in the Afrikaans sub-site and select English it does not change the directory but stays at /mysite/af/ instead of going to /mysite/en/.
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] MultisiteI didn’t even know you can do that via the browser! But yes, I need to be able to redirect the user to the specific language or he should be able to go to any language from any language page (sub-site in a wordpress multi-site).
And thank you Jan for the fix 🙂
Forum: Plugins
In reply to: [Polylang] [Plugin: Polylang] MultisiteApologies. My ASCII illustration got totally messed up there.
Forum: Plugins
In reply to: Recommend a multi-lingual wp e-commerce solution.Okay, so I have rummaged through a number of sites to find some kind of solution but nothing. It seems I am stuck with either choosing only ONE language for a whole multi-site e-commerce installation or… I make two more subdirectory installs of wordpress and change the language as needed…
Anyone any ideas. Thank you.
Forum: Fixing WordPress
In reply to: Most images not appearingOMG! You would not believe what was the problem.
Some of my image names in the css started with a capital letter whilst the actualy file was lowercase. Why the hell didn’t my browser show this problem with the off-line WordPress site?!
I kind of remembered what happened and how the files got changed. I had made some changes to the design in PS, exported the slices and never bothered to confer that the names were correct. How or why they got changed… I have no idea.
Anycase. I had some extra time because they are still getting some stuff together.
Thanks for all the input. 🙂
Forum: Fixing WordPress
In reply to: Most images not appearingJeez. This is impossible!!!
– I have uploaded a whole new wordpress installation from a new – connection (not at home).
– Created a fresh new database and made the necessary changes to the wp-config. Nothing from the xampp off-line database was used. It’s a clean slate.
– Uploaded the theme… double checked the css image refs are correct.
– Uploaded jquery drop-down menu.Same problem. -> http://www.boererepublieke.co.za/
I am really lost.
Is there anything I can upload to anyone here that might help? Some files? I’ll even upload the whole webpage if need be…
Forum: Fixing WordPress
In reply to: Most images not appearingI changed the name of the BlankSlate folder to boererepublieke. It shouldn’t really be a problem or am I missing something?
That local host referencing is purely because I never uploaded the media images for WP! Stupid me. But it still doesn’t really explain the strange referencing for the rest of the template.
It also seems, as you probably saw, that absolute paths in the css does not seem to work either. Well, not anymore.
My images reside in http://www.boererepublieke.co.za/wp-content/themes/boererepublieke/images/
I’m beginning to think that my WP upload was somehow corrupted. I might clean the slate and start from scratch.
Everything is working perfectly off-line on XAMPP so I might upload the whole damn thing (again) as it is and just do the necessary changes to the config and database where needed.
Thanks for all the help so far.
Forum: Fixing WordPress
In reply to: Most images not appearingOh man. New theme and same problem.
I also created a new database, imported the list from my current (local) wordpress design and changed the URL and Home options in the structure to http://www.boererepublieke.co.za. Now I’ve got a banner and footer but no other images. The new theme changed something but I can’t get my head around what.
Everything else seems works fine – menu, content etc.
Forum: Fixing WordPress
In reply to: Most images not appearingThanks for the advice so far 🙂
I’ve tried a few things just to try and clear away some obscure inconsistencies.
– I uploaded a fresh toolbox theme and uploaded my own CSS and all the images. No go.
– I placed all the images into wp-content/themes/images/ (as was suggested) and tried again. Nothing.
– I also tried to rename the theme and still nothing.
– Then I changed the css relative paths to absolute http://www…. and there you go! It works.
So now, after painstakingly going through every css line and trying to make sure all my html looks OK I’ve called it quits. I can’t find the problem.
I downloaded another blank template (BlankSlate 2.0 WordPress Theme) and just quickly rebuild the site. It’s nothing big or fantastic, very basic so it’s really driving me up the walls as to what could be wrong.
Thanks again for the suggestions.
Forum: Fixing WordPress
In reply to: Most images not appearingThanks for the reply.
I just checked again, everything is uploaded.