Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1185017
    Damien W
    Participant

    Hi 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

    #1185131
    Rahul
    Moderator

    Hey 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!

    #1186088
    Damien W
    Participant
    This reply has been marked as private.
    #1186111
    Paul R
    Moderator

    Hi 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

    #1186177
    Damien W
    Participant
    This reply has been marked as private.
    #1186220
    Lely
    Moderator

    Hi 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.

    #1186345
    Damien W
    Participant
    This reply has been marked as private.
    #1186365
    Damien W
    Participant

    Hi 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.

    #1186539
    Rupok
    Member

    Hi 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!

    #1186804
    Damien W
    Participant

    Hi 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.

    #1186811
    Damien W
    Participant

    Hi 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 13

    I 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??????

    #1187141
    Rad
    Moderator

    Hi 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!

    #1187677
    Damien W
    Participant

    Hi 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.

    #1187687
    Paul R
    Moderator

    Hi 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

  • <script> jQuery(function($){ $("#no-reply-1185017 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>