genesis

    0熱度

    2回答

    我努力讓我的自定義後類型使用個性化的檔案模板,希望有人能看到我要去哪裏錯了,幫我重回正軌嗎? 這裏是我用於創建自定義文章類型代碼: add_action('init', 'news_post_type'); function news_post_type() { register_post_type('news', array( 'labels' => array(

    5熱度

    1回答

    我想通過將autocomplete="off"添加到搜索輸入中來改變我的搜索表單。 我最初找像下面這樣的簡單的過濾器: //* Customize search form input box text add_filter('genesis_search_text', 'sp_search_text'); function sp_search_text($text) { return

    1熱度

    2回答

    添加搜索表單一個div裏面我想添加一個div內搜索表單使用的代碼波紋管: printf('<div class="entry"><p>%s</p>%s</div>', apply_filters('genesis_noposts_text', __('Try again below.', 'genesis')), get_search_form()); 但每次我添加它的股利之前產生的get_sea

    0熱度

    1回答

    我們使用Genesis的自定義子主題,並且不顯示自定義標題圖像。 兒童主題的woocommerce.php: <?php /** * WooCommerce Template * * Template used for all WooCommerce views for your site * */ //* Remove standard post content output

    2熱度

    1回答

    我們使用Genesis的兒童主題。 woocommerce.php包含: <?php /** * WooCommerce Template * * Template used for all WooCommerce views for your site * */ //* Remove standard post content output remove_action('gen

    1熱度

    1回答

    在我的WordPress博客頁面(home.php)模板上,我試圖在頂部顯示爲該頁面設置的精選圖像,然後是內容存檔網格。但是,不是顯示我爲頁面設置的精選圖片,而是顯示第一篇博文的精選圖片。另外(相關),如果我刪除第一篇博文的精選圖片,它會在內容存檔頁面上使用另一篇文章圖片。我猜這兩個問題是相關的,但我不確定。任何幫助,將不勝感激。 這裏我把我的functions.php代碼 //Add featu

    0熱度

    1回答

    我有一個自定義內容類型的存檔頁面,我想在存檔列表中顯示其中一個自定義字段。我不知道要使用什麼鉤子或如何訪問自定義內容類型中的變量以顯示在-archive.php中。任何人都可以幫我解決相關的問題,或者如何訪問這些字段變量?

    1熱度

    1回答

    創建一個template.php文件,並希望刪除 <article class="post-11 page type-page status-publish entry" itemscope itemtype="http://schema.org/CreativeWork"> 這從我的身體。我想象有一個創功能但是我無法找到在這裏,或通過谷歌.. 任何幫助gr8ly感激.. 吉姆

    0熱度

    1回答

    <?php /* * Plugin Name: Add Fontawesome Animation * Plugin URI: ... * Description: This plugin is used to animate Fontawesome icons * Version: 1.0.0 * Author: ... * Author URI: ... * License:

    0熱度

    1回答

    我在編輯創作中編輯自定義文章類型標題的標題時遇到了一些麻煩。要我用這個代碼,但我有沒有運氣上手: add_filter('genesis_post_title_output', 'remove_single_custom_post_titles', 15); function remove_single_custom_post_titles($title) { $title .= 'T