Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #265324

    Hi,

    I’m currently working on modifying your Enfold theme for a website I’m doing.Currently, the logo area covers a space that is just right of the leftmost header area.

    I’d like the logo to remain where you’ve defined it to be. However, I’d like the space to the left of the logo to be covered in a white background?

    Is this possible with your theme? What do I need to do to accomplish that?

    I thought if I create a canvas with a white background spanning the area of the logo + to the left of the logo, then I can accomplish what I need , but that didn’t work.

    The homepage I’m working on is at: …………………………….

    Thanks,

    Percy

    • This topic was modified 10 years, 6 months ago by pthaba.
    #265422

    Hey Percy!

    Can you post a mockup and show the changes you would like to make? I am not sure if i understood it clearly

    Cheers!
    Yigit

    #265499
    This reply has been marked as private.
    #265644

    Hey!

    Thank you for using the theme!

    This modification can’t be accomplish with just the logo. Please add this at the very bottom of functions.php:

    add_action('ava_main_header', 'ava_main_header_background');
    
    function ava_main_header_background() {
    	echo "<div class='left-header-bg'></div>";
    }

    After add this on custom.css or Quick CSS:

    div.left-header-bg {
    display: block;
    width: 100%;
    position: absolute;
    background: #ffffff;
    height: 88px;
    left: -80%;
    }

    Adjust the height and left position if necessary.

    Best regards,
    Ismael

    #265773

    Hello Ismael,

    Thank you so much for your help. I do love th Enfold theme.

    Please note that I added the PHP code to the Theme Functions (functions.php) file, but then I got the following syntax error:

    “Parse error: syntax error, unexpected T_FUNCTION in /home/nsindote/public_html/dib/wp-content/themes/enfold/functions.php on line 494”

    When this happened I then removed the new code, but unfortunately the error still remains.

    Let me also say when I studied the code I saw the PHP opening syntax (<?php), but I didn’t see the closing syntax (?>). I tried adding the closing syntax thinking maybe that could be the problem, but that also didn’t solve the problem.

    Your urgent help would be greatly appreciated as I can’t see to do anything now.

    Thanks,
    Percy

    #266155

    Hey!

    If you have not made any other changes on funtions.php file, please replace it with default one that comes inside Enfold folder you download from ThemeForest. The code Ismael posted works totally fine on my end. Please copy&paste the code.

    Regards,
    Yigit

    #266252

    Guys,

    I’ve done what you are suggesting probably 10 times hoping for a different result every time. The only change I made was exactly what Ismael said to change and nothing else and yet even the default functions.php code has not been able to solve my problem.

    From your response I guess I’m going to have to do a fresh WP install with your theme because it doesn’t look like you have any other solution other than the things I’ve already tried.

    It would be nice to know that this problem could be solved, but I’ve already lost 4 days since the first day I posted this, which not good. I know you are extremely busy because it takes you about 2 days to respond and I don’t have that long to wait.

    Regards,
    Percy

    #266582

    Hi!

    Sorry for the delay.

    I’ve tested this again on my end and it works fine. You just need to copy and paste the suggested code at the very bottom of functions.php:

    add_action('ava_main_header', 'ava_main_header_background');
    
    function ava_main_header_background() {
    	echo "<div class='left-header-bg'></div>";
    }

    After that, go to the Quick CSS field and paste the css snippets above. The result should be like this:

    Cheers!
    Ismael

    #266659

    Thanks, but doesn’t work for me. I can’t even get to adding the CSS because the parse error blocks the whole site. There is not a single thing I can edit other than the already opened functions.php.

    #266753

    Hi!

    Undo-ing changes you have made on Functions.php file via FTP or replacing the file should work, but if not, please try re-updating the theme via FTP – http://vimeo.com/67209750

    Regards,
    Yigit

    #266769

    Guys,

    I’ve had to reload my wordpress and start from scratch. The first thing after creating my child theme I tried your code snippet and it worked perfectly.

    So I guess the parse error I’ve been getting was introduced by something else although I still haven’t figured out what since it happened when I edited functions.php.

    Thank you so much for your help.

    Percy

    #266772

    Hey Percy!

    You are welcome, glad Ismael could help! Let us know if you have any other questions or issues :)

    Cheers!
    Yigit

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Extending the Logo Area for the Enfold Theme’ is closed to new replies.