Simple edits/footer

Community Forums Forums General Discussion Simple edits/footer

This topic is: not resolved

This topic contains 8 replies, has 2 voices, and was last updated by  Tonje 1 year, 6 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #35989

    Tonje
    Participant
    Post count: 37

    Hi,

    We have Agency Theme and we would like to add the company address in the footer. We have used Simple Edits for

    Back to top
    Credit
    Output

    Is the footer the right one to use? And if so, how is it possible to add that without “disturbing” the already existing footers line (looks like there is no more space…)

     

    Thanks in advance.

    Tonje http://www.iexcelbooks.no

     

    http://
    #36002

    braddalton
    Participant
    Post count: 10254

    You can also use the Footer scripts in the Genesis > Theme Settings or a custom function:

    Change the hook location if needed. http://genesistutorials.com/visual-hook-guide/

    I suggest you create the HTML for your company address i n your WordPress editor and centre it there then simply paste the HTML between the opening and closing div tags in the code snippet above. This enables you to easily style the output of your HTML for your company address using CSS code in your child themes style.css file.

    These are 3 locations you can choose from which you’ll see in the hook map:
    [php]
    genesis_after_footer
    genesis_footer
    wp_footer
    [/php]


    #36008

    braddalton
    Participant
    Post count: 10254
    #36173

    Tonje
    Participant
    Post count: 37

    Thank you. Appreciate your explanation but I cant simply get it to work. I tried all 3 of them to be on the “safe” side, but it did not work. Should it be something before the word function?

    regards Tonje

     

    #36259

    braddalton
    Participant
    Post count: 10254

    Code works. Tested in again on your theme.

    Copy the code from the raw view and add it to the end fo your child themes functions.php file.

    Create the HTML or text for your company address in your editor and paste it between the div tags in the code.

    Where exactly do you want to display yuour company address?

    Take a screenshot and point an arrow to it.


    #36950

    Tonje
    Participant
    Post count: 37

    Thank you so much, that worked. I have so little skills so I mange to put it in the stylesheet.

    Now, the company address is finally there, thanks to your explanation.

     

    Tonje

    #37710

    Tonje
    Participant
    Post count: 37

    Its me again Brad,

    I tried to do some more tweaks to the company information like adding color.

    All of the sudden the site went down with this message: Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/4/i/iexcelbooks/www/wp-content/themes/Archive/functions.php on line 115

    Anyone knows how I can solve that error and to get the site up again? I am sure I by a mistake touched something else than the footer….

     

    Thanks

     

     

    #37782

    braddalton
    Participant
    Post count: 10254

    You’ll need to access the file using FTP or File Manager in cPanel and remove the code.

    Where did you paste it?

    Always use a text editor like Norepad++ and access the file directly rather than use the WordPress theme editor in the dashboard.


    #37910

    Tonje
    Participant
    Post count: 37

    Great, thanks

    I guess I might have used a wrong editor (I pasted it at the end of the php….)

    I will try again :-)

     

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.