Forum Replies Created
-
AuthorPosts
-
chobsMember
Building out custom pages now, may have to sacrifice having the editor altogether on this one and be super specific between the header and footer to get exactly what I need, oi!
chobsMemberThanks Davinder, I'm all set! See you on the inside.
chobsMemberThanks Davinder! Appreciate it.
Cheers
chobsMemberThanks for the inside scoop Davinder I appreciate it! Will definitely check it out. Cheers
EDIT:...just looking at this now, apparently I need to be invited by a Team Administrator to get access/account, do you know any Slack Administrators around here?
chobsMemberThanks for clarifying. Cheers David!
chobsMemberI'm trying to figure out how I can center the type as well but I'm having no luck, I'm using !important which is not ideal as my child CSS doesn't seem to override the plugin's styles. Does anyone here have thoughts that might point me in the right direction?
I wonder if the Slider settings that specify: left, right, are overriding any style changes...but I'm not sure.
Cheers
cchobsMemberchobsMemberI would like to know this as well, this would be a huge asset because I love this plugin, anyone?
chobsMemberGo to line 1517 of your style.css file in your Magazine Pro child-theme folder and replace it with this:
.entry-meta { /* font-size: 14px; */ display:none; }
I commented out the font size so that you can put it back the way it was later if you want.
February 20, 2015 at 6:50 am in reply to: Got header banner Image on pages, but doesn't appear on blog? #141434chobsMemberFor future coders: I got some help from Howdy_McGee at WP Stack Exchange, he made some suggestions that worked like a charm, basically WP was seeing single pages. Previously I was using !is_singular( 'page' ), however when I created a 'Blog' from a page, it automatically becomes an archive, so that rules out it being 'a single page' as it is now pulling in a lot of Blog posts and WP doesn't recognize it. And, there's no way to specify a page ID because of it. So we use is_page() and is_home() instead. And for the second conditional we use if is_home get page_for_posts and ask it to get_the_ID. Long story short, if you want a banner image on pages and posts drop this in your functions.php
//* Add Header Images on Posts/Pages add_image_size( 'header-img', 1600 ); add_action( 'genesis_after_header', 'site_banner', 0 ); function site_banner() { if( ( is_page() || is_home() ) ) { $post_id = ( is_home() ? get_option( 'page_for_posts' ) : get_the_ID() ); if( has_post_thumbnail( $post_id ) ) { $ftbanner = wp_get_attachment_image_src( get_post_thumbnail_id( $post_id ), 'header-img' ); $banner = $ftbanner[0]; echo '<div id="site-banner" class="site-banner">' . "\n"; echo '<img src="' . $banner . '">' . "\n"; echo '</div>' . "\n"; } } }
February 19, 2015 at 1:12 pm in reply to: Got header banner Image on pages, but doesn't appear on blog? #141352chobsMemberSpoke too soon, somehow this code still only specifies adding a banner image to the header of Pages -- I should probably mention I'm using the Parallax Pro theme which requires a Blog page be created in the Pages section for a blog roll to work. In any case the Blog is a page, yet it doesn't display like the other pages...my head hurts.
February 19, 2015 at 9:53 am in reply to: Got header banner Image on pages, but doesn't appear on blog? #141317chobsMemberOkay I got rid of the !isingular_page('page') and replaced it with is_home() and included an ID for the page in the second conditional. Thanks for the troubleshoot Lauren!
//* Add Header Images on Posts/Pages add_image_size( 'header-img', 1600); add_action('genesis_after_header', 'site_banner', 0); function site_banner(){ if( is_home() ) return; if( has_post_thumbnail() && is_page(201) ) : $ftbanner = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'header-img' ); $banner = $ftbanner[0]; echo '<div id="site-banner" class="site-banner">' . "\n"; echo '<img src="' . $banner . '">' . "\n"; echo '</div>' . "\n"; endif; }
February 19, 2015 at 8:59 am in reply to: Got header banner Image on pages, but doesn't appear on blog? #141306chobsMemberIt's local I'm afraid. But thanks for jumping in.
c
February 19, 2015 at 8:36 am in reply to: Got header banner Image on pages, but doesn't appear on blog? #141299chobsMemberThanks Lauren, sorry I'm not sure I follow. by specifying do you mean
if( has_post_thumbnail() && is_page('blog') ) :
?I read thru the codex, even added an ID:
if( has_post_thumbnail() && is_page(201) ) :
no dice. and maybe something else needs to change? I'm new at this so I appreciate your insight.
Thanks! c
chobsMemberI'm also curious how to get this to work, I want to ad custom ads in a couple of places, not adsense, but affiliate ads, does anyone have a suggestion on how best to do this?
chobsMemberClairification, I figured out how to have all three on a post. However when I use the "featured post widget" to show a full post on the homepage, it DOESN't appear under the title, so I put it in the top right header instead. This get's a little confusing to explain.
Here's what I mean, homepage: http://porschelover.com
And post: http://porschelover.com/art-porsche-design-urban-outlaw-la/Notice the header right with the leaderboard makes the post now 4 Adsense ads. Not sure if I can hide the leaderboard in the header on a post...
In a perfect world it would be like this: http://endangeredcars.com however I realize this is another Studio Press theme altogether from Mag Pro, which is the one I use.
Thoughts?
CchobsMemberThanks Davinder,
I think you saw this as I was testing. I figured out that I could not include shortcode for a two Adsense ads (in functions.php) in a post without it canceling out the third ad (skyscraper) in the sidebar. I ideally wanted a leaderboard to appear under my post title on the homepage/featured post. I guess the Genisis theme doesn't allow for it. I heard about a plugin that does this for $19 but I'm hesitant to spend.
C
-
AuthorPosts