Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   PHP or whatever (http://www.greenguysboard.com/board/showthread.php?t=68515)

jollyhumper 2017-05-03 01:44 PM

PHP or whatever
 
Hi

I want to put my own info in the footer and not the shit that wordpress has put there.
It's the theme Twenty Seventeen (Click Preview and check footer)

Now, this one I'm not able to crack. Usually I crack those footer-codes, but not so on this one.
Here's the code
Code:



               

                       

                                                                get_template_part( 'template-parts/footer/footer', 'widgets' );

                                if ( has_nav_menu( 'social' ) ) : ?>
                                       
                               
                                get_template_part( 'template-parts/footer/site', 'info' );
                                ?>
                       

               

       






Are you able to spot what I need to remove and replace with basic
Made by me and such?

It's not an option to tweak this in the customize settings on the Dashboard

Jolly

Toby 2017-05-03 02:04 PM

I'd focus on this part...
Code:


I'm guessing that 'template-parts/footer/site', 'info' is a path and file that contains the footer content. If that's the case you should be able to modify that file as needed.

jollyhumper 2017-05-03 03:57 PM

Thank you for your reply.

However, that's not the answer.
I've not been able to put in my own info yet, but I managed to remove the social links that where in the footer. They were actually a menu I just had to disable. Hadn't seen that solution before, kinda clever idea.

I'll see if I can find the answer later, now it's time for bed.

As you said, this is probably a script that pulls info from elsewhere.
No filenames with the name you suggested.

I can live with "powered by wordpress" in the footer, as long as those social buttons are gone.

J:)lly

Useless 2017-05-03 07:19 PM

I'm fairly certain that Toby is correct.

in template-parts/footer, open site-info.php

Here's the code:
PHP Code:

<div class="site-info">
    <a href="<?php echo esc_url__'https://wordpress.org/''twentyseventeen' ) ); ?>"><?php printf__'Proudly powered by %s''twentyseventeen' ), 'WordPress' ); ?></a>
</div><!-- .site-info -->


jollyhumper 2017-05-04 02:50 AM

Quote:

Originally Posted by Useless Warrior (Post 546501)
I'm fairly certain that Toby is correct.

I'm sorry Toby, you were in fact correct. I downloaded the site and searched, then I found the file. Need new glasses, seriously.

Thanks!

J:)lly


All times are GMT -4. The time now is 03:26 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc