Forum Replies Created
-
AuthorPosts
-
YossifMember
Nevermind, got answer from the facebook group. Thanks!
YossifMemberSorry I am not very familiar with CSS and I am using the Generate Box plugin, which limits how much I can put into it.
How would I implement this using CSS or HTML coding?
Thanks
YossifMemberHi Anita, thanks for checking up on it. The main issue with the banner was indeed fixed but now I am having issues with the text going behind the picture. Any thoughts on how I can keep the text within a certain distance before wrapping back?
Take a look at http://pleasantparcels.com/ to see what I mean or take a look at this picture.
Thanks for your input!
-YossifYossifMemberYes, I can edit the php easily enough, but what is the exact coding I would use for this? I barely know how to edit code, and making new code is foreign to me, so any help would really be great.
Something like " <?php remove_action( $tag, $function_to_remove, $priority ); ?>" added to the end of the php? I have no idea. (got from this site)
Thanks.
YossifMemberI'm a total coding newbie, so I have no idea where to start. In this case, I wanted to just disable the "genesis_before_post_content" hook based on the page template landing.php. This is just to remove some ads and such.
Any advice would be appreciated, I barely know anything about this stuff honestly.
Thanks!
YossifMemberBump? Can anyone help me out here?
January 19, 2015 at 12:43 pm in reply to: Change container/padding size for landing page only? #137935YossifMemberBump? Anyone??
January 16, 2015 at 7:02 pm in reply to: Change container/padding size for landing page only? #137723YossifMemberOh and I'm using the Generate theme if that helps.
I'm thinking I need to use something like:
.splash { width:910px; padding:30px 30px 0; } #content { width: 910px; margin: 0px auto 0px;
or
#wrap { background: #FFFFFF; width: 930px; margin: 0px auto 0px;
Thanks!
January 16, 2015 at 9:24 am in reply to: How to make a very simple landing page? (Newbie help) #137667YossifMemberOK I feel dumb. There already was a pre-made landing page template with everything already programmed in!
As for removing the ads, I found another thread with the similar issue, and this bit of code in the ghooks took care of it:
<?php if( is_page_template( ‘landing.php’ ) ) return; // add your adsense code for display ?>
So there you have it, all is good to go. Thanks for help guys!
-YossifJanuary 15, 2015 at 1:22 pm in reply to: How to make a very simple landing page? (Newbie help) #137589YossifMemberYes that worked, Carlo. Thanks to you both for the help so far.
However, I'm still unable to get rid of the secondary menu and the ghook-based ads. Is there something I can use to remove those or disable them within that same php?
looks like the menu is something with "subnav" or "menu-secondary"?
The ad that is in the way is on the "genesis_before_content_sidebar_wrap" Hook. Can I disable it somehow for this page?
Here's the page in question again: http://angrynutrition.com/10-diet-myths-ebook/
Thanks for the help!!
-YossifYossifMemberHmm the plot thickens...
OK So, still trying out Ozzy's version (#4), I changed them to #nav in the js:
( function( window, $, undefined ) { 'use strict'; $( '#nav' ).before( '<button class="menu-toggle" role="button" aria-pressed="false"></button>' ); // Add toggles to menus $( '#nav .sub-menu' ).before( '<button class="sub-menu-toggle" role="button" aria-pressed="false"></button>' ); // Add toggles to sub menus // Show/hide the navigation $( '.menu-toggle, .sub-menu-toggle' ).on( 'click', function() { var $this = $( this ); $this.attr( 'aria-pressed', function( index, value ) { return 'false' === value ? 'true' : 'false'; }); $this.toggleClass( 'activated' ); $this.next( '#nav, .sub-menu' ).slideToggle( 'fast' ); }); })( this, jQuery );
NOW I'm finally getting the hamburger showing up, but the menu is expanded by default... so something is sorta working! Here's when the button is on/off:
<button class="menu-toggle" role="button" aria-pressed="false"></button> <button class="menu-toggle activated" role="button" aria-pressed="true"></button>
When open, the code is:
<div id="nav" style="display: block;"><div class="wrap"><ul id="menu-primary" class="menu genesis-nav-menu menu-primary"><li id="menu-item-1488" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1488">
(followed by all the links)When closed, it is:
<div id="nav" style="display: none;"><div class="wrap"><ul id="menu-primary" class="menu genesis-nav-menu menu-primary"><li id="menu-item-1488" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-has-children menu-item-1488">
Strange that it's still called "nav" in this case vs. nav-primary or #nav? Then again, I barely know anything about coding, so any ideas are appreciated. Thanks for help so far!!
-YossifJanuary 14, 2015 at 6:36 pm in reply to: How to make a very simple landing page? (Newbie help) #137498YossifMemberYep, your code seems to have worked.
It may not be ideal, but hey, if it works, it works.
Let's see what Carlo might suggest for the rest of it, but at least we're a little closer now. I'm also getting more experienced as I mess around with this stuff... I'm not scared that a tiny little change will crash the site! (as it was doing earlier haha)
Those are some impressive activities you got going, Dom! It's pretty similar to what I've done in the past, but I don't think I could do a Triathalon/duathlon... that's some hardcore stuff! Good for you man.
-Yossif
YossifMemberOK I read through the posts on Ozzy's page and found that maybe changing the "nav" to ".nav-primary" may help to fix all this... but I'm a bit confused exactly which "nav" parts to change?
Any thoughts?
Keep in mind, I'm a coding newbie so any help is appreciated.
-YossifYossifMemberHey Christoph, thanks for the links...
So I tried the first 3 and none seemed to work. I tried Ozzy's version and it sorta works, it just made it so the sub menus don't display...
While that's an improvement, I'm still stuck on a miscoding somewhere.
You can see it here: angrynutrition.com
Any thoughts why it isn't working for the main menus?
-Yossif
January 14, 2015 at 11:46 am in reply to: How to make a very simple landing page? (Newbie help) #137457YossifMemberJanuary 14, 2015 at 10:45 am in reply to: How to make a very simple landing page? (Newbie help) #137451YossifMemberOK, I managed to get rid of the generate box like Dom suggested. Thank you for that Dom!
OK so now I'd like to remove the ghook-based ad's and the primary menu bar.
I used the simple hooks plugin to add the ad's code, so do I need to go through and remove all the stuff like
genesis_before_post_content Hook
with thisdisplay: none;
code? Or maybe there's something I can use to just disable all the hooks on this given page?Regarding the menu, based on the inspect code, would I alter something like
id="subnav
orid="menu-secondary
??Regarding what Carlo said, can stick that same bit of code into the page_sale.php and get the same thing as the style.css edit?
Thanks for all the help again!
-YossifPS: Thanks for kind words, Dom. What's your favorite type of exercise?
January 14, 2015 at 12:15 am in reply to: How to make a very simple landing page? (Newbie help) #137385YossifMemberThanks, but I'm still really confused where to use this. I'm very very basic with coding, hell I don't know the difference between PHP and CSS yet... So please bear with me....
Here's the contents of my generate box plugin, hopefully this has something I can change to use this command?
http://pastebin.com/QPsDWyWqI tried to inspect the element, but wasn't sure what I was looking at once I was looking at the guts of the website. If you'd like to look at it yourself, the website is http://angrynutrition.com/
I'm guessing something needs to be changed to
if ( !is_page_template('page_sales.php') .generate-box { display: none; } )
(I think? Sorry, still very new to all of this!)
Thank you for your help so far!
-YossifJanuary 13, 2015 at 10:39 am in reply to: How to make a very simple landing page? (Newbie help) #137322YossifMemberThanks Dom, that seemed to do it...
However, I'm still having issues with my various genesis hooks displaying ads as well as my generate box showing up. Is there a way to disable all of that within only this page?
Maybe something with
if ( !is_page_template('page_landing.php') )
or replace it withif ( !is_page_template('page_sales.php') )
??Thanks!
-YossifJanuary 8, 2015 at 8:36 pm in reply to: How to make a very simple landing page? (Newbie help) #136438YossifMemberI also found this page:
http://sridharkatakam.com/sales-page-template-genesis/
I think it would be great if it looked like that but I have no idea how to make a .php file or how to apply it to my blog. Can anyone help me with making this?
YossifMemberSorry, new to the forums, do you mean I should submit a ticket for this or it was already answered somewhere else? (where are these help desks?)
-
AuthorPosts