Tagged: x
-
AuthorPosts
-
September 21, 2016 at 12:17 pm #1185017
Damien WParticipantHi there
I have a website that is using a side menu down the left hand side. The client has asked to change the font colour from white to black and also add the address in here too. I’m not sure if you add a widget in the side for the address or not. See the attached image for the existing layout.
cheers
September 21, 2016 at 1:18 pm #1185131
RahulModeratorHey There,
Thanks for writing in!
Can you please resize and attach a Screenshot back as we allow Max file size 512 KB?
Thanks for understanding!
September 22, 2016 at 2:11 am #1186088
Damien WParticipantThis reply has been marked as private.September 22, 2016 at 2:41 am #1186111
Paul RModeratorHi Damien,
1. To Change the font color, you can add this under Custom > Edit Global CSS in the Customizer.
.x-navbar .desktop .x-nav>li>a { color:#000; }2. To add an address you can add this in your child theme functions.php file
function add_address(){ ?> <div class="my-address"> Office 33 27 Colmore Row Birmingham England B3 2EW </div> <?php } add_action('x_after_view_global__nav-primary', 'add_address');3. With regards to the black background, can you provide us your site url so we can take a closer look.
Thanks
September 22, 2016 at 3:56 am #1186177
Damien WParticipantThis reply has been marked as private.September 22, 2016 at 4:45 am #1186220
LelyModeratorHi There,
Thank you for the URL. On Appearance > Customize > Layout and Design: You have chosen Boxed Layout.. Then your site max width is 1033px. You also added the following CSS:
#top { float: left; }That custom CSS adjusted your entire content to the left. The black background is an image set probably on Appearance > Customize Layout and Design > Background Image.
Hope this helps.
September 22, 2016 at 7:31 am #1186345
Damien WParticipantThis reply has been marked as private.September 22, 2016 at 8:18 am #1186365
Damien WParticipantHi Lely
I have had a look for the CSS
#top {
float: left;
}But couldn’t find it anywhere. I am downloading the site at the minute so I can search for it locally and see where it occurs. This is not something that I ever remember entering.
September 22, 2016 at 10:34 am #1186539
RupokMemberHi there,
It seems you have added them under Custom > CSS in the Customizer. So let’s check there. We can look for them if you provide credentials but it would be under Customzier as I can see from front-end.
Cheers!
September 22, 2016 at 1:36 pm #1186804
Damien WParticipantHi Rupok
I have removed line of CSS from the Custom section as suggested and I am getting a different issue now. Please see the attached image.
September 22, 2016 at 1:39 pm #1186811
Damien WParticipantHi All
When I put the following in place in the functions.php, as Paul suggested, I get the error listed below.
function add_address(){
?>
<div class=”my-address”>
Office 33
27 Colmore Row
Birmingham
England
B3 2EW</div>
<?php
}
add_action(‘x_after_view_global__nav-primary’, ‘add_address’);ERROR:
Parse error: syntax error, unexpected ‘}’ in /home/?????????/public_html/wp-content/themes/x-child-minimax/functions.php on line 13I put exactly what you provided for me in place first and I would change it once it works correctly. However, it knocked the whole site out and I had to FTP into the file and change it back to the original content.
Have you any ideas??????
September 22, 2016 at 7:17 pm #1187141
RadModeratorHi there,
Would you mind providing the entire content of your functions.php after adding that code? Maybe some part of existing code is overwritten by that new code.
Thanks!
September 23, 2016 at 3:33 am #1187677
Damien WParticipantHi Rad
The file originally just had “<?php” in place. But when this below was put in place the site became unusable.
<?php
function add_address(){
?>
<div class=”my-address”>
Office 33
27 Colmore Row
Birmingham
England
B3 2EW</div>
<?php
}
add_action(‘x_after_view_global__nav-primary’, ‘add_address’);I then tried it again with “<?php” in front of this above to see if this made any difference. But it didn’t.
September 23, 2016 at 3:40 am #1187687
Paul RModeratorHi Damien,
Your file should look like this.
http://screencast.com/t/NzzBZfjb9b6
If that doesn’t help please proivde ftp login in private reply.
Thanks
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1185017 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
