-
AuthorPosts
-
May 15, 2014 at 3:59 pm #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.
May 15, 2014 at 6:35 pm #265422Hey 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!
YigitMay 15, 2014 at 9:13 pm #265499This reply has been marked as private.May 16, 2014 at 2:26 am #265644Hey!
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,
IsmaelMay 16, 2014 at 11:36 am #265773Hello 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,
PercyMay 17, 2014 at 5:55 pm #266155Hey!
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,
YigitMay 18, 2014 at 9:37 am #266252Guys,
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,
PercyMay 19, 2014 at 2:46 am #266582Hi!
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!
IsmaelMay 19, 2014 at 8:28 am #266659Thanks, 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.
May 19, 2014 at 12:52 pm #266753Hi!
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,
YigitMay 19, 2014 at 1:10 pm #266769Guys,
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
May 19, 2014 at 1:18 pm #266772 -
AuthorPosts
- The topic ‘Extending the Logo Area for the Enfold Theme’ is closed to new replies.