Viewing 15 replies - 1 through 15 (of 24 total)
  • Have you tried editing wp-content/themes/colormag/footer.php file?

    Thread Starter exhale68

    (@exhale68)

    No I haven’t, and i’m afraid to. First off, I don’t even know where to begin or what to do, as im not experienced with this. Second, ive tried to do it on my own before, but ended up destroying the entire website and had to restore it.

    I would suggest :
    > First backup your files.
    > Open footer.php file in any text editor. (You may use Notepad++)
    > Try to Remove the unwanted content.
    > Note that any content in html lies in between opening and closing tag <div> Content Goes Here </div>.. Make sure if you’re going to delete <div> tag, then you’ll have to delete </div> tag.

    > If something will go wrong, you can re-upload your backup footer.php file and site will get restored as it was. But, you should give it a try ??

    Thread Starter exhale68

    (@exhale68)

    Im not too sure how to back up using Filezilla, but i just highlighted every file/folder in the root directory of my site and clicked download. Now i’m waiting for it to finish downloading. Would that work?

    You need to backup ‘colormag’ folder from wwwroot/wp-content/themes/colormag
    In that folder you’ll get footer.php file.

    If you’re having no idea about filezilla then you can also edit that file from WP admin dashboard. Go to Appearance > Editor > Select footer.php to edit. BUT, again COPY and BACKUP all the content of footer.php to somewhere else before editing it.

    Thread Starter exhale68

    (@exhale68)

    Alright, So right now I selected everything and clicked download (i did it before you replied) and now it’s queuing like 4000+ files. Im guessing cancel it?

    Thread Starter exhale68

    (@exhale68)

    Alright, so i downloaded the colormag folder onto my hard drive, so i have a backup copy of it now. I found footer.php but here’s the text inside it, im not good with coding so could you tell me what to edit out if I just want to remove the text at the bottom of my site that says “Theme: ColorMag by ThemeGrill. Powered by WordPress.”

    <?php
    /**
    * Theme Footer Section for our theme.
    *
    * Displays all of the footer section and closing of the #main div.
    *
    * @package ThemeGrill
    * @subpackage ColorMag
    * @since ColorMag 1.0
    */
    ?>

    </div><!– .inner-wrap –>
    </div><!– #main –>
    <?php if ( is_active_sidebar(‘colormag_advertisement_above_the_footer_sidebar’) ) { ?>
    <div class=”advertisement_above_footer”>
    <div class=”inner-wrap”>
    <?php dynamic_sidebar(‘colormag_advertisement_above_the_footer_sidebar’); ?>
    </div>
    </div>
    <?php } ?>
    <?php do_action( ‘colormag_before_footer’ ); ?>
    <footer id=”colophon” class=”clearfix”>
    <?php get_sidebar( ‘footer’ ); ?>
    <div class=”footer-socket-wrapper clearfix”>
    <div class=”inner-wrap”>
    <div class=”footer-socket-area”>
    <div class=”footer-socket-right-section”>
    <?php if( get_theme_mod( ‘colormag_social_link_activate’, 0 ) == 1 ) { colormag_social_links(); } ?>
    </div>
    <div class=”footer-socket-left-sectoin”>
    <?php do_action( ‘colormag_footer_copyright’ ); ?>
    </div>
    </div>
    </div>
    </div>
    </footer>
    <i class=”fa fa-chevron-up”></i>
    </div><!– #page –>
    <?php wp_footer(); ?>
    </body>
    </html>

    Now let them download. Anyway you’ll be having ‘colormag’ theme folder in /wp-content/themes/ For Backup.

    Also, make sure in which local directory path you’re downloading the entire website to access the files. And, after downloading the folder/files, it would be better to have 2-3 copies of that site (one for editing and another as backup) as you’re having no idea about WP architecture.

    Thread Starter exhale68

    (@exhale68)

    I didn’t download the entire site. I cancelled the download since you only told me to download the colormag folder to my local machine. When i tried to download the entire site, it queued up thousands of files so i cancelled it.

    Alright!

    Now edit footer.php

    Replace the line:

    <?php do_action( 'colormag_footer_copyright' ); ?>

    With:

    <div class="copyright">Copyright &copy; 2015 <a href="https://www.droidfeed.net/" title="DroidFeed" ><span>DroidFeed</span></a>. All rights reserved.</div>

    Save the file and upload it back to colormag folder with filezilla.

    Thread Starter exhale68

    (@exhale68)

    What if i want the text to appear as “Copyright ? 2015-2016 DroidFeed. All rights reserved.” because i want to come back here and change it every year for the year.without the quotation marks

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Actually, don’t edit that file. When the theme is updated you will lose all of your work.

    Create and activate a child theme, copy that footer.php file into the child theme directory and then edit that copy instead.

    https://codex.www.ads-software.com/Child_Themes

    Then the code will go like :

    <div class="copyright">Copyright ? 2015-2016 <a href="https://www.droidfeed.net/" title="DroidFeed"><span>DroidFeed</span></a>. All rights reserved.</div>

    Note: Copy n Backup downloaded ‘colormag’ folder before editing footer.php ??

    Thread Starter exhale68

    (@exhale68)

    Ok, so here’s what my file looks like now

    <?php
    /**
     * Theme Footer Section for our theme.
     *
     * Displays all of the footer section and closing of the #main div.
     *
     * @package ThemeGrill
     * @subpackage ColorMag
     * @since ColorMag 1.0
     */
    ?>
    
    		</div><!-- .inner-wrap -->
    	</div><!-- #main -->
       <?php if ( is_active_sidebar('colormag_advertisement_above_the_footer_sidebar') ) { ?>
          <div class="advertisement_above_footer">
             <div class="inner-wrap">
                <?php dynamic_sidebar('colormag_advertisement_above_the_footer_sidebar'); ?>
             </div>
          </div>
       <?php } ?>
    	<div class="copyright">Copyright ? 2015-2016 <a href="https://www.droidfeed.net/" title="DroidFeed"><span>DroidFeed</span></a>. All rights reserved.</div>
    		<footer id="colophon" class="clearfix">
    			<?php get_sidebar( 'footer' ); ?>
    			<div class="footer-socket-wrapper clearfix">
    				<div class="inner-wrap">
    					<div class="footer-socket-area">
                      <div class="footer-socket-right-section">
       						<?php if( get_theme_mod( 'colormag_social_link_activate', 0 ) == 1 ) { colormag_social_links(); } ?>
                      </div>
                      <div class="footer-socket-left-sectoin">
       						<?php do_action( 'colormag_footer_copyright' ); ?>
                      </div>
    					</div>
    				</div>
    			</div>
    		</footer>
    		<a href="#masthead"><i class="fa fa-chevron-up"></i></a>
    	</div><!-- #page -->
    	<?php wp_footer(); ?>
    </body>
    </html>

    Is that ok?

    Yes! Jan is right.

    If you don’t want to update the theme then use this hard code Or go for the child theme to have updates.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘How do I remove or edit the footer links/text?’ is closed to new replies.