Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1654379
Header Options/Page Width
Closed

Comments

  • Rachel Roelofs started the conversation

    Hi, 

    There are a few things I need help with:

    1. I am wondering if I can have the Header 1 on the home page and the Header 6 on every other page? 

    2. I have figured out how to change the max-width of the posts but not of the pages. How do I do that? 

    3. I would like one of the menu options at the top of the mage not to link to a page but just have the drop down option is that possible? 

    Thank you so much! 

    Rachel 


  •  2,700
    PenciDesign replied

    Hi,

    1/ To do that, please go to Customize > Logo and Header Options > on "Header Layout" > select "Header 6". After that, add more this code at the end of functions.php file:

    /**
     * Change header style to header 5
     */
    if( ! function_exists( 'penci_change_header_for_home' ) ) {
        function penci_change_header_for_home( $data ) {
            if( is_home() || is_front_page() ) {
                return 'header-1';
            } else {
                return $data;
            }
        }
        add_filter( 'theme_mod_penci_header_layout', 'penci_change_header_for_home' );
    }
    

    like on this image.

    2/ Please check option for it via Customize > Page Options.

    3/ You can use "Custom Link" for that menu item with URL is "#"  - like on this image


    Best Regards,

    PenciDesign

  • Rachel Roelofs replied

    Hi again, 

    1. I tried to put that code to the functions.php file and it didn't work. I am using a child theme and I tried to put the CSS is the child and the parent and neither worked. 

    2. I got this one! thank you 

    3. I think I may have explained this wrong. I need the word in the menu not to be clickable or have no link attaching it to a page. I only want it to have the drop down menu that links to other categories of posts. In other words I don't want this page in the attached screenshot to exist. 

    Thank you! 

  •  2,700
    PenciDesign replied

    Hi,

    1/ Please send me your admin url and admin account ( username and password  ) - in a private reply. I will take it a look help you.

    2/ OK.

    3/ Yeah, I was guide you the way to do that. Have you tried it?


    Best Regards,

    PenciDesign

  •   Rachel Roelofs replied privately
  •  2,700
    PenciDesign replied

    Hi,

    1/ I did it help you by add more this code at the end of functions.php file on your child theme:

    /**
     * Change header style to header 6
     */
    if( ! function_exists( 'penci_change_header_for_home' ) ) {
        function penci_change_header_for_home( $data ) {
            if( is_home() || is_front_page() ) {
                return 'header-1';
            } else {
                return 'header-6';
            }
        }
        add_filter( 'theme_mod_penci_header_layout', 'penci_change_header_for_home' );
    }
    

    Now, everything working fine.

    3/ I just created a menu item "Stories" help you - you can check it.


    Best Regards,

    PenciDesign

  • Rachel Roelofs replied

    Hello! 

    1. Thank you for your help! I can see that you entered the code, but the header on the first page is still not working. Do I need to do something else? 

    3. This is fixed! Thank you! 

    Rachel 

  •  2,700
    PenciDesign replied

    Hi,

    Your hosting has a cache from itself and you can't see the change.

    And you can't see the change by my hook via Customizer because the hook doesn't apply for customizer.

    Please contact with your hosting provider and requirements them disable the cache from hosting and preview again your site on the front-end and you will see it.


    Best Regards,

    PenciDesign

  • Rachel Roelofs replied

    Hi agian! 

    Thank you for your help it is all working now.

    But the social icons are showing up on the live page as little squares. Is there a way to fix this? 

    Thank you!

  •  2,700
    PenciDesign replied

    Hi,

    I see everything displayed fine - check this image

    Please press Ctrl + F5  on your browser to clearly the browser cache and check it again.


    Best Regards,

    PenciDesign