Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 2017-05-03, 01:44 PM   #1
jollyhumper
That's what she said
 
jollyhumper's Avatar
 
Join Date: Feb 2012
Location: Norway
Posts: 2,559
Send a message via ICQ to jollyhumper
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:
</div><!-- #content -->

		<footer id="colophon" class="site-footer" role="contentinfo">
			<div class="wrap">
				<?php
				get_template_part( 'template-parts/footer/footer', 'widgets' );

				if ( has_nav_menu( 'social' ) ) : ?>
					<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentyseventeen' ); ?>">
						<?php
							wp_nav_menu( array(
								'theme_location' => 'social',
								'menu_class'     => 'social-links-menu',
								'depth'          => 1,
								'link_before'    => '<span class="screen-reader-text">',
								'link_after'     => '</span>' . twentyseventeen_get_svg( array( 'icon' => 'chain' ) ),
							) );
						?>
					</nav><!-- .social-navigation -->
				<?php endif;

				get_template_part( 'template-parts/footer/site', 'info' );
				?>
			</div><!-- .wrap -->
		</footer><!-- #colophon -->
	</div><!-- .site-content-contain -->
</div><!-- #page -->
<?php wp_footer(); ?>

</body>
</html>
Are you able to spot what I need to remove and replace with basic
<a href="www.url.url">Made by me</a> and such?

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

Jolly
jollyhumper is offline   Reply With Quote
Old 2017-05-03, 02:04 PM   #2
Toby
Lonewolf Internet Sales
 
Toby's Avatar
 
Join Date: Mar 2005
Location: Houston
Posts: 4,826
Send a message via ICQ to Toby
I'd focus on this part...
Code:
<?get_template_part( 'template-parts/footer/site', 'info' ); 	?>
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.
Toby is offline   Reply With Quote
Old 2017-05-03, 03:57 PM   #3
jollyhumper
That's what she said
 
jollyhumper's Avatar
 
Join Date: Feb 2012
Location: Norway
Posts: 2,559
Send a message via ICQ to jollyhumper
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.

Jlly
jollyhumper is offline   Reply With Quote
Old 2017-05-03, 07:19 PM   #4
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
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 -->
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2017-05-04, 02:50 AM   #5
jollyhumper
That's what she said
 
jollyhumper's Avatar
 
Join Date: Feb 2012
Location: Norway
Posts: 2,559
Send a message via ICQ to jollyhumper
Quote:
Originally Posted by Useless Warrior View Post
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!

Jlly

Last edited by jollyhumper; 2017-05-04 at 03:04 AM..
jollyhumper is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:29 PM.


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