wordpress theme truemag modification

1. Modify the logo of truemage. After deployment, the section about the logo in the homepage code is:

<div class="navbar-header">
<button type="button" class="navbar-toggle off-canvas-toggle" style="user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); touch-action: none;">
<span class="sr-only">切换导航</span>
<i class="fa fa-reorder fa-bars fa-lg"></i>
</button>
<a class="logo" href="http://bbb.com" title="Truemag | 又一个WordPress站点"><img src="http://aaa.com/truemag/wp-content/uploads/2018/03/truemag-logo-V2-yellow-1X.png" alt="Truemag | 又一个WordPress站点"></a>
</div>

(1) Search in the theme folder in the background: navbar-header , search for the corresponding code of header-navigation.php:

<div class="navbar-header">
<button type="button" class="navbar-toggle<?php if(ot_get_option('mobile_nav',1)){ echo ' off-canvas-toggle"';}else{ ?>" data-toggle="collapse" data-target=".navbar-collapse"<?php } ?>>
<span class="sr-only"><?php _e('Toggle navigation','cactusthemes') ?></span>
<i class="fa fa-reorder fa-bars fa-lg"></i>
</button>
<?php if(ot_get_option('logo_image') == ''):?>
<a class="logo" href="<?php echo home_url(); ?>"><img src="<?php echo get_template_directory_uri() ?>/images/logo.png" alt="logo"></a>
<?php else:?>
<a class="logo" href="<?php echo get_home_url(); ?>" title="<?php wp_title( '|', true, 'right' ); ?>"><img src="<?php echo ot_get_option('logo_image'); ?>" alt="<?php wp_title( '|', true, 'right' ); ?>"/></a>
<?php endif;?>
</div>

(2) Log in to the background phpmyadmin and search for the relevant fields of wp_options corresponding to the database:

SELECT * FROM wp_truemag_options WHERE option_value like '%truemag-logo%'

A search turned up a line:
wordpress theme truemag modification

Then look for it in the field of the string: truemag-logo-V2-yellow-1X.png, you can modify the logo by modifying the comparison part

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325553621&siteId=291194637