WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Modifying Header on Main Page Problem (26 posts)

  1. cma2032
    Member
    Posted 1 year ago #

    Hi everyone,

    I have been trying to solve this problem for about 2 hours now with no luck yet. Basically, I need to remove the logo in the top left corner, and move the main image up roughly 35 px. Ideally, I'd actually like to move the main image all the way up against the orange toolbar, and float the navigation bar over the main image. I'm not sure how to do that with WordPress, because I don't know how to target this specific page. If someone has any advice or solutions for me, I would appreciate it very, very much.

    Here is the website in question.

  2. jasonpaulweber
    Member
    Posted 1 year ago #

    I'd have to know your theme and would prefer to do so without changing any core WP files.

    And fyi the proper link for your site is http://youthmax.livegodloud.com/

    So it's difficult to proffer any solution(s) without knowing your theme. Presumably, there should be something under appearance > theme options > delete your logo ... and that would push the main image up.

    Then if your theme has a custom CSS section, you could fiddle with the margins with that, if needed.

  3. jasonpaulweber
    Member
    Posted 1 year ago #

    Oops ... anyway, any more information you could provide could be helpful.

  4. cma2032
    Member
    Posted 1 year ago #

    Thank you,

    I meant to include that. My theme name is YAMINTH and the developer site is here: http://azmind.com/2012/03/04/free-wordpress-theme-yaminth/

    When you say it's in theme options, there is an option to insert text instead of the logo, but my problem is that I only want to remove the logo on the main page. I know it's possible to apply a CSS style to only one page, but I had to leave the main page unnamed to keep the title from showing up on the main page.

  5. cma2032
    Member
    Posted 1 year ago #

    Yikes, that's totally not the theme for this site, that's for another site.

    This theme is Passion Reloaded: http://themeforest.net/item/passion-reloaded-responsive-wordpress-theme/2550867

  6. esmi
    Forum Moderator
    Posted 1 year ago #

    I'm sorry but as you are using a commercial theme, you need to seek support from the theme's developer/vendor. We do not support commercial themes here.
    Try http://themeforest.net/user/UnitedThemes

  7. jasonpaulweber
    Member
    Posted 1 year ago #

    Just add this to your custom CSS (recommended) or style.css:

    #logo {
    display:none !important;
    }

  8. cma2032
    Member
    Posted 1 year ago #

    Is there an efficient way to put that statement in the main stylesheet, and have it apply only to the index.php/front page?

  9. jasonpaulweber
    Member
    Posted 1 year ago #

    Oh ... well, open up your wp-content/themes/passion-reloaded/index.php (most likely ... I don't know your theme), and at the top of that page, just above the:

    <div id="primary" class="site-content">
    		<div id="content" role="main">

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    Or wherever your html starts, put:

    <style type="text/css">
    #logo {
    display:none !important;
    }
    </style>

  10. cma2032
    Member
    Posted 1 year ago #

    Hm, well, that did work very well, but unfortunately it removed the logo from every page.

  11. jasonpaulweber
    Member
    Posted 1 year ago #

    I'm confused now. It shouldn't remove the logo from your posts, pages, archives, categories, etc. ...

    Do you want to make me a temporary login and password so I can look around in that theme and try to understand it?

    Other than that, they have to have a support forum for this theme and their other themes .... which they do, located here.

  12. esmi
    Forum Moderator
    Posted 1 year ago #

    @cma2032: Please do not pass out login information to forum members. You should also be aware that, as you are using a commercial theme, you need to seek support from the theme's developer/vendor. We do not support commercial themes here.
    Try http://themeforest.net/user/UnitedThemes

    @jasonpaulweber: I realise that you are only trying to help but please do not solicit login information from posters.

  13. cma2032
    Member
    Posted 1 year ago #

    That would be great, if you don't mind. Do you have an email address I can send the login information to?

    @esmi: I had written this before reading your reply, and thank you for looking out for me. I understand that I would be doing this at my own risk. I will post on the Theme forum and ask for help. Thank you.

  14. jasonpaulweber
    Member
    Posted 1 year ago #

    Well, I've done it a lot in the past, esmi. I understand it's not recommended in most cases unless you trust the person. But if he/she trusts me, then it should be up to that person.

    Regardless, my email is my username at gmail.

  15. cma2032
    Member
    Posted 1 year ago #

    @jasonpaulweber

    I've sent you an email. Thank you.

  16. jasonpaulweber
    Member
    Posted 1 year ago #

    It will most likely involve writing a conditional tag that tells your WP "if this is the front page, do not show the logo. Otherwise, show the logo" ...

    I'm trying to think of how to write this.

  17. esmi
    Forum Moderator
    Posted 1 year ago #

    Well, I've done it a lot in the past, esmi.

    Then please do not do it again. Soliciting logins is not allowed except in cases where a plugin or theme developer is trying to sort out a bug with his/her plugin or theme with the poster's help.

  18. jasonpaulweber
    Member
    Posted 1 year ago #

    I added a conditional tag to your header.php ...

    In your header.php, you had:

    <?php
    		// Build the logo or text
    		if (get_option_tree('textorlogo') == 'Logo') {
    
    			$lambda_logo  = '<div id="logo">
    								<a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo('name','display')).'"><img src="'.get_option_tree('header_logo').'"></a>
    							</div>';
    			} else {
    			$lambda_logo  = '<div id="logo"><h1>
    								<a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo('name','display')).'">'.get_bloginfo('name').'</a>
    							</h1></div>';
    			}
    		echo apply_filters ( 'child_logo' , $lambda_logo);
    		?>

    Just add a conditional tag surrounding this, so it looks like this:

    <?php if ( !is_front_page() ): ?>
    		<?php
    		// Build the logo or text
    		if (get_option_tree('textorlogo') == 'Logo') {
    
    			$lambda_logo  = '<div id="logo">
    								<a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo('name','display')).'"><img src="'.get_option_tree('header_logo').'"></a>
    							</div>';
    			} else {
    			$lambda_logo  = '<div id="logo"><h1>
    								<a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo('name','display')).'">'.get_bloginfo('name').'</a>
    							</h1></div>';
    			}
    		echo apply_filters ( 'child_logo' , $lambda_logo);
    		?>
    <?php endif; ?>

    This tells your WP that if this is the front page, don't display the logo ... otherwise, display the logo.

  19. Samuel Wood (Otto)
    Tech Ninja
    Posted 1 year ago #

    Well, I've done it a lot in the past, esmi. I understand it's not recommended in most cases unless you trust the person. But if he/she trusts me, then it should be up to that person.

    Not here, and not on this forum.

    Additionally, you are not a "WordPress.org moderator", so I'd appreciate it if you would remove that from the "About me" section of your website.

    Thanks.

  20. jasonpaulweber
    Member
    Posted 1 year ago #

    I use WordPress at work
    I make my living using WordPress
    I am a WordPress consultant

    I have all of that unchecked, so I don't know why it shows up. That's why I'm listed as a member, not a moderator.

  21. That reference in on your website and not here; that's where it says you're a WordPress moderator.

    Could you fix that there please? As Otto said it's on the "About me" section there.

  22. Andrew
    Forum Moderator
    Posted 1 year ago #

    @cma2032 Did you resolve your issue?

    If not, can you please restate it? Otherwise this thread's originating problem is hard to follow.

  23. occupyhln
    Blocked
    Posted 1 year ago #

    Yes, Andrew, jasonpaulweber solved his issue prior to being banned by Jan Dembowski and Samuel Wood (Otto).

  24. cma2032
    Member
    Posted 1 year ago #

    Wow, that escalated quickly.

    Yes, he did actually solve my issue. I don't 100% understand how he did it because I can't really wrap my head around php, but he did fix the problem I was having.

  25. esmi
    Forum Moderator
    Posted 1 year ago #

    @occupyhln: No one who has posted to this topic prior to your response has been banned from these forums.

  26. However posts have been deleted for being both off topic and inflammatory.

    This is solved, I'm closing this post. Please do not email the forum moderators personally about this. NO ONE has been banned, they're just being temporarily moderated. We do that when there's an uptick in odd behavior. If you've been tagged for moderation, just keep posting like a normal person and it will magically go away in time :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.