アルファストアテーマテンプレートから子テーマを作成しました。私はあなたが子供で全体footer.phpファイルを置き換えない限り、あなたは子テーマから全要素を削除することはできませんコアテーマアルファストアテーマテンプレートの子テーマからコピー権利テキストを削除
<?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
私はこれを試して、仕事関数ではないremove_the_footer_entirely($ creds){ return ''; } add_filter( 'alpha-store_footer_creds_text'、 'remove_the_footer_entirely'); –
ペーストのウェブサイトリンクはここにありますか?だからCSSがあなたを助けます。 –