Jump to content
Sign in to follow this  
limelight

Meta Settings on Post Page

Recommended Posts

limelight

Hello, I finally got my blog page to look exactly how I wanted it - Hid the Site Branding and replaced it with a Banner (to achieve a different header on my blog page) and also hid the TwitterBar. But when I figured out how to get my posts to post to that page (WP Settings - Reading - Posts Page) the banner on my page disappears and the TwitterBar re-appears (even though it shows in the page meta settings to be hidden by being checked). And I even have it removed from the global Morefoot template. Any thoughts on how to fix this? Or maybe there's a different work around to get a different banner on my blog page? I'm using the Platform Pro theme. Thank you!!

Share this post


Link to post
Share on other sites
cmunns

Banners on the blog page can't be changed yet..it's better for static pages. We will be working on improving these sort of meta options in future releases.

Share this post


Link to post
Share on other sites
limelight

Thank you for your answer. Is there a different way for me to have a different header on the blog page? An easy way...I don't know much about code. :-)

Share this post


Link to post
Share on other sites
cmunns

You could use a hook to add a header to the blog page. We can help walk you through it. You'll be adding code to the functions.php file using -Base child theme. Review this as well for more info before we get started: www.pagelines.com/docs/base-child-theme

Share this post


Link to post
Share on other sites
limelight

Thanks Adam! I watched that video about hooks and I'm scared. But if you're willing to walk me through it (and think I can do it) then let's do it. I did mess around with my posts page again today and realized that it's even removing the global site branding header...so strange. So I can't get anything to show up at the top of my posts page. I hope the hooks can still help! And I don't even know where to find the functions.php file. Here we go...buckle up...

Share this post


Link to post
Share on other sites
cmunns

The branding shouldn't be gone unless you changed something. What is the link to your site?

Share this post


Link to post
Share on other sites
limelight
http://limelightsocialmedia.com/ I just went in and tried again...when I have the Reading Post Page set to -SELECT- (so nothing) the Header appears on the News Onlime (our blog) page but when I select the Post Page to be News Online then the header is gone. The TwitterBar also goes from being gone to reappearing as soon as I select this to be the Post Page, too. Thanks for the help!

Share this post


Link to post
Share on other sites
catrina

When you open the page editor for the News Onlime page, is "Hide Site Branding" checked on the right side PageLines Section Control?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
limelight

No, it is unchecked.

Share this post


Link to post
Share on other sites
kastelic

Go into Template Setup and select Site Header. Click on "advanced setup" under Site Branding and make sure that "hide on posts pages" is not checked.

Share this post


Link to post
Share on other sites
limelight

That was it, Jimmy! Thank you!! Now can someone help me with the hooks so that I can have a different header there? Also the TwitterBar is still showing on that page (even though it's checked to not show).

Share this post


Link to post
Share on other sites
catrina

If you need to replace that current header image with something else, you can upload a different image instead (so hooks are not needed). Also, I cannot see the Twitter bar when I look at your site. It appears to be disabled already.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
limelight

Catrina, the TwitterBar appears at the bottom of the posts page (News Onlime). And I can have a different header on just our posts page (different than the global header on the other pages) by just uploading it somewhere? Where's that?

Share this post


Link to post
Share on other sites
catrina

To hide the Twitter Bar add this CSS to your custom CSS code area:

#twitterbar {display: none;}

Sorry, I missed the different header part. If you want a different header on your posts page, you can use a custom hook. Here's a tutorial on how to implement one: http://www.pagelines.com/docs/base-child-theme


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
limelight

Thanks Catrina - finally got that stubborn TwitterBar removed. :-) Now, can someone help me in using the hooks to change my header on the post page?? I reviewed the doc/video and am still confused. Thank you!

Share this post


Link to post
Share on other sites
catrina

The first thing you need to do is figure out which hook you'll need to use. This depends on where you want to put your item (in this case, the banner). Since you already know that you want to put it in the header, you need to look at the list of hooks that are put in the site header. Does that make sense so far?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
limelight

I think so. This one: pagelines_inside_top_branding ??

Share this post


Link to post
Share on other sites
kastelic

So this is what your function is going to look like. You need to have the base child theme and then paste this code into function.php:

add_action('pagelines_inside_top_branding', 'header_image');
	
		function header_image(){
			?>
			`<a href="http://limelightsocialmedia.com" title="">
	        	<img src="YOUR-FULL-URL" alt="" />
	        </a>`
		<?php }
You also need to hide the image you have there now using CSS so put this code in Custom Code -> Custom CSS:
.home .mainlogo-link {display:none}

To get the image url, upload it with the Media tool and copy the full url from there.

Share this post


Link to post
Share on other sites
kastelic

Also, remove the backticks, ` , before the

<a
and after the
a>

Share this post


Link to post
Share on other sites
limelight

I'm sorry, I'm new at all this. How do I know if I'm working in the child theme? And where do I find the function.php folder? Am I looking in the WP Dashboard or in my C-Panel?? Thanks again for all the help everyone!

Share this post


Link to post
Share on other sites
Simon

Which theme do you have activated Becky? PlatformPro or PlatformBase? PlatformBase is the child theme.

Share this post


Link to post
Share on other sites
timlinson
Am I looking in the WP Dashboard or in my C-Panel??
You can go to Appearance > Editor. Select PlatformBase from the "Select theme to edit" dropdown and click the "Theme Functions (functions.php)" link.

Share this post


Link to post
Share on other sites
limelight

Yikes! Help! My site is down now. I found the functions.php thanks to Tim's help and I thought I was just supposed to paste what Jimmy gave me. I got this error and now this is what you get when you visit my site. Fatal error: Cannot redeclare header_image() (previously declared in /home/limeligh/public_html/wp-includes/theme.php:1447) in /home/limeligh/public_html/wp-content/themes/platformbase/functions.php on line 110

Share this post


Link to post
Share on other sites
limelight

I can't even get into my WP Admin...trying not to panic...

Share this post


Link to post
Share on other sites
timlinson

Looks like header_image is already used as a function name elsewhere, so you'll have to change header_image to something like beckys_header_image: `add_action('pagelines_inside_top_branding', 'beckys_header_image');` `function beckys_header_image(){` `?>` `` `YOUR-FULL-URL` `` `<?php }` You'll have to access this file with an ftp client or in cpanel now.. you can find functions.php in the wp-content/themes/platformbase folder.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×