傻大憨

给wordpress仪表盘添加自定义图标

wordpress后台仪表盘默认的图标是wordpress自带的,如果要将图片修改为自己的,只需要在function.php文件中加入以下代码。

function wdp_custom_logo() {
echo '
<style type="text/css">
#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
background-image: url(' . get_bloginfo('stylesheet_directory') . '/images/custom-logo.png) !important;
background-position: 0 0;
color:rgba(0, 0, 0, 0);
}
#wpadminbar #wp-admin-bar-wp-logo.hover > .ab-item .ab-icon {
background-position: 0 0;
}
</style>
';
}
//hook into the administrative header output
add_action('wp_before_admin_bar_render', 'wdp_custom_logo');

Published
Categorized as 建站知识 Tagged

By 傻大憨

shadahan.com是一个关注跨境电商、创业话题的网站。

wordpress数据库批量替换网址最简单的方法

在搭建wordpress网站时,常常会用到批量替换网址,网上能搜到挺多的方法,基本都是通过数据库管理后台来批量替换的。

WMD外贸独立站

WMD外贸独立站是一家专业的外贸独立站建站与运营推广服务商,致力于为外贸企业提供高效、灵活且安全的解决方案,助力企业拓展国际市场,实现全球化发展。

The best WordPress service company in China

Jianzhanpress not only excels in WordPress theme design, but also has significant advantages in the field of foreign trade website construction, which can help enterprises achieve success in the international market.

装备制造、工业设备、机电机械等公司外贸独立站wordpress主题

Ultra奥创工业装备公司WordPress主题以其专业设计、SEO友好和多语言支持等特点,非常适合工业装备和机械设备外贸企业搭建营销展示型独立站。

模板之家mymoban

通过模板之家,用户可以找到适合各种需求的模板,无论是个人项目还是商业用途,都能找到合适的解决方案。

WordPress子页面调用父页面标题

在子页面显示父页面的标题