Gustavius
Forum Replies Created
-
Forum: Plugins
In reply to: Adding post content to email on button-clickI’ve checked out global $post and it seems you should be able to extract the content via $post -> post_content.
When I replace the body section with…
$body = htmlspecialchars($post->post_content);… the link does not even open up in a email. There are propably a lot of plug-ins that would enable this automatically but I would like to implement this myself for various reasons, amongst others – to learn something in the process.
Any tip, guide, reference, anything would be appreciated.
Forum: Plugins
In reply to: Adding post content to email on button-clickDoes anyone have any suggestions? Everything I find on google uses the normal, subject and link instead of adding the whole text.
Thank you
Forum: Plugins
In reply to: GianlucaGuarini Black&white image jquery in WP?Thanks again Gene and apologies for the late reply. I appreciate your help.
It doesn’t seem to work so I am beginning to wonder if the problem might be somewhere else. Is the .bwWrapper class even doing anything? Seems to be a simple implementation – or rather, it should be.
I’m going to play around with it and see what happens.
Forum: Themes and Templates
In reply to: foundation, Gumby – no php files?Thanks Zona and thanks for the link! It’s just what I was looking for.
I found a number of video’s (RWD with Skeleton) from Webdesigntuts+ that uses to skeleton framework to build a WP site. Very informative. It’s a bit different from working of a child from a WP framework like thematic (which is awesome) since you have no hooks to begin with but the one thing I really love is the prototyping before implementation in WP.
Forum: Plugins
In reply to: GianlucaGuarini Black&white image jquery in WP?Thanks for the reply!
I’m no guru with WP yet but this was just sloppy. I also found a few other mistakes!
Anywayz. No luck. I’ve removed the wp_enqueue_script(‘jquery’) and used
add_action('init', 'boererepublieke_scripts');to load the script.I also changed the actual script load in the wp_head to:
function boererepublieke_bw() {
if(function_exists('boererepublieke_bw')) {?>
<script>
// the script here</script> <?php
}
}
add_action('wp_head','boererepublieke_bw');Forum: Themes and Templates
In reply to: foundation, Gumby – no php files?Gumby’s got a 12 column Pack, 16 Column Pack, etc.
The included index.html file has some basic structuring files but there is nothing in there that utilizes wordpess. I’d have to start coding all of it from scratch to get it to talk to WP. Same with foundation.Am I missing something?
Can anyone suggest a WP specific free responsive framework other than thematic’s childs-play. I took a look at the Skeleton framework and so far I like it.
Any other suggestions?
Thanks again.
Forum: Hacks
In reply to: do_action_ref_array()Thank you! That makes a LOT more sense. People like you should write the bloody guides! Apologies for the late reply…
Well, I don’t see much benefit with the ref_array except or the last part – returning it as a whole instead of individual arguments.
Forum: Plugins
In reply to: WP E-commerce (HELP) Page not Found | ErrorNevermind.
I found a simple solution: Just go to settings -> Permalinks and click “Save”. This probably reset the problem….
I haven’t even thought about the issue with blank pages. Thanks for the info! So I basically have the same set-up as you have right now – I removed the links to the Custom items and use category items as subs. Anywayz….
You mention you are in the “process of making the categories SEO friendly via the plug-in.” Are you referring to adding SEO info on the category item itself or something else?
Forum: Themes and Templates
In reply to: Load different header on HomepageThanks for that tip esmi. I will look into it.
Forum: Themes and Templates
In reply to: Load different header on HomepageOkay. So everyhting works fine.
Just to recap:
All I did was place this short code between my wrapper div and before my <nav> section:
<?php if ( is_front_page() ) {?> <header > <div id=""> Some header div's and <img>, blah blah, blah </div> </header><?php } else {?> <header > <div id=""> Some OTHER header div's and <img>, blah blah, blah </div> </header><?php <?php } ?>And wallah! I dunno if this is more of a hack but it works simple and great and I only need one header.php file – the original. 🙂 awesome.
I could probably mark this as solved except if someone wants to warn me about something… hope not.
Forum: Themes and Templates
In reply to: Load different header on HomepageThanks esmi
I will try that in a moment…
Forum: Themes and Templates
In reply to: Load different header on HomepageIt worked!
Well, kind of. My central logo is missing, but everything else looks fine.
I’m getting closer 🙂
Forum: Themes and Templates
In reply to: Load different header on HomepageYou know what. I just thought of something.
Why not load up the Javascript and relvant Div’s for the header structure right after the if(is_front_page and else in the main header.php. then I won’t need the extra files.
Forum: Themes and Templates
In reply to: Load different header on HomepageI have NO idea what to do with that var_dump. The link to the php.net manual made no sense to me, or I am brain dead lazy today.
All I need to do is:
1) Display Header A on Homepage
2) Display Header B on EVERY other page.So I created two header files for the job and according to some sources I need to place a bit of code somewhere in my header.php. That code will reference to a certain header depending on what the page is.
Thus:
If (is_front_page) then load header-home.php otherwise…load header-site.php.The only catch is that my header has some Javascript. I tried loading it up in the header.php but that didn’t work either.
My code is in the right place?