WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Where do you add a creative commons license (HTML code) to the bottom of blog? (9 posts)

  1. nrdeuel
    Member
    Posted 1 year ago #

    Hello,

    I have obtained the HTML code of my creative commons license, but I'm clueless as to where I put it on my blog (Mantra theme). I would like to put it at the bottom of my blog, directly above where it says "Powered by WordPress".

    Where in Editor do I place the HTML code?

    Thanks for the help.

    Nick

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    obtained the HTML code of my creative commons license

    Which code is that?

  3. nrdeuel
    Member
    Posted 1 year ago #

    Thanks for the help.

    Here is the code for my creative commons license:

    <img style="border-width: 0;" alt="Creative Commons License" src="http://i.creativecommons.org/l/by-nc-nd/3.0/88x31.png" />
    This work by http://www.AllWildlifeConsidered.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.

    Where do I place this code if I want it to be directly above "Powered by WordPress" (on the bottom of the webpage)?

    Thanks again

    Nick

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    What theme are you using? You may need to modify the footer.php file, depending on the theme.

  5. nrdeuel
    Member
    Posted 1 year ago #

    I'm using the mantra theme.

    Here is the code for footer.php

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the id=main div and all content
     * after.  Calls sidebar-footer.php for bottom widgets.
     *
     * @package Cryout Creations
     * @subpackage mantra
     * @since mantra 0.5
     */
    ?>	<div style="clear:both;"></div>
    	</div> <!-- #forbottom -->
    	</div><!-- #main -->
    
    	<footer id="footer" role="contentinfo">
    		<div id="colophon">
    
    			<?php get_sidebar( 'footer' );?>
    
    		</div><!-- #colophon -->
    
    		<div id="footer2">
    
    			<?php cryout_footer_hook(); ?>
    
    		</div><!-- #footer2 -->
    
    	</footer><!-- #footer -->
    
    </div><!-- #wrapper -->
    
    <?php	wp_footer(); ?>
    
    </body>
    </html>

    [Please use the code buttons for posting code-it may have been corrupted as is.]

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Try putting it just below this line <div id="footer2">. But you really should not be making changes to any theme files -- as your changes will be lost when the theme is updated. Rather, we always recommend using a child theme. http://codex.wordpress.org/Child_Themes

    The other question - just to check - are you applying the CC license to the entire site or just your content?

  7. nrdeuel
    Member
    Posted 1 year ago #

    Ok, I will try to make a child theme and go from there. I wanted to use the CC License for the content mostly. Why would I need a CC license for the entire site? Thanks again for your help.

    Nick

  8. nrdeuel
    Member
    Posted 1 year ago #

    I tried putting it where you told me and it worked! Thank you. Although I know I should make a child theme for when the mantra theme updates. Thanks again, I really appreciate the help.

    Nick

  9. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Why would I need a CC license for the entire site?

    I wasn't suggesting that -- quite the opposite -- as I think it's against the WP GPL for you to claim CC license to the portion of your site that is under GPL. Perhaps just double check on that or make it clear on your site :).

    You're welcome re: the help - and yes, definitely make a child theme so you don't run into a lot of grief down the road.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags