Forum Replies Created
-
AuthorPosts
-
Brad DaltonParticipantMarch 23, 2013 at 11:20 pm in reply to: Change the 'Join Us Get Fresh Content Now' image (Genesis Generate) #30827Brad DaltonParticipant
The image will be in the child themes images folder so you can simply right click it and copy to your desktop.
I use Paint.net (Not paint) where you can easily create a new image, use the magic wand to create a transparent background and drag your image as a new layer.
March 23, 2013 at 6:13 am in reply to: Change the 'Join Us Get Fresh Content Now' image (Genesis Generate) #30642Brad DaltonParticipantPut the image on a transparent background which is the same size as the original image.
Brad DaltonParticipantBrad DaltonParticipantBrad DaltonParticipantBrad DaltonParticipantBrad DaltonParticipantBrad DaltonParticipantfunction gravity_form_before_content() { if (is_page_template( 'single-listing.php' ) ) { echo do_shortcode ('[gravityform id=4 title=false description=false ajax=true]'); } }; add_action('genesis_before_comments', 'gravity_form_before_content');
This code should work.
There was 2 problems with your code:
1. Your function has 2 different names:
gravity_before_comments
gravity_form_before_content2. Sometimes when you copy and paste code the apostrophe can get messed up and change.
Always copy and paste from the raw version and use a text editor like Notepad++ to edit code.
Brad DaltonParticipantBrad DaltonParticipantBrad DaltonParticipantAre you using File Manager in cPanel or FTP to access the themes files?
Brad DaltonParticipantYou could use the Widget Logic plugin and display specific widget content on the homepage only.
This plugin may also help http://wordpress.org/extend/plugins/genesis-layout-extras/
Brad DaltonParticipantYou'll also find the upload link where you can upload a zip file of Genesis!!
Brad DaltonParticipantWhere did you get the code from?
Why don't you add a widget or try one of these code snippets https://gist.github.com/braddalton
Brad DaltonParticipantYou can align the image when you insert it into a new post before you copy the images HTML code and also use the advanced image settings or add CSS declarations to the class.
Brad DaltonParticipantAnother way to do this is to install this plugin http://wordpress.org/extend/plugins/wp-display-header/
Brad DaltonParticipantBrad DaltonParticipantTested the code and it works but you have a problem with that themes code.
Brad DaltonParticipantBetter using a custom function.
Paste this PHP code at the end of your child theme functions.php file.
Change the genesis hook and conditional tag if needed.
Hard to clearly understand what you need. Is it 2 images in different pages? Please link to the 2 pages.
Exactly which hook location do you want to display the images?
You can also use CSS code to display different header images using the page i.d from the source code:
PHP code is more powerful and flexible.
-
AuthorPosts