我已經從alpha-store主題模板創建了一個兒童主題。我需要刪除複製右側的文本,而無需修改核心主題刪除從alpha-store主題模板的兒童主題複製權利文本
<?php
add_action('wp_enqueue_scripts', 'my_theme_enqueue_styles');
function my_theme_enqueue_styles() {
wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css');
}
add_action('tha_footer_top', 'your_function');
function your_function() {
$content = '<div class="site-info container"><p>This is inserted at the bottom</p></div>';
echo $content;
}
?>
你嘗試過'remove_action'嗎? – RRikesh
我試過這個,不工作function remove_the_footer_entirely($ creds){ return''; } add_filter('alpha-store_footer_creds_text','remove_the_footer_entirely'); –
粘貼網站鏈接在這裏?所以CSS會幫助你。 –