在不使用PRO的情况下重新排序Hestia挂钩

时间:2018-09-06 19:35:49

标签: wordpress hook

我正在尝试对免费的Hestia主题的各个部分进行重新排序,但是我不想为PRO版本付费。从我所看到的,我需要更改代码的Hooks部分,但是我很挣扎。我想在“大标题”部分之后和“功能”之前有一个“关于”部分。如果有人可以看一下这段代码并让我知道如何进行更改,我将非常感激!

谢谢!

/* Big title / Slider section */
/**
 * Hook just before the Big title / Slider section
 *
 * HTML context: before `div#carousel-hestia-generic`
 */
function hestia_before_big_title_section_trigger() {
    do_action( 'hestia_before_big_title_section_hook' );
}

/**
 * Hook just before the Big title / Slider section content
 *
 * HTML context: before `div#carousel-hestia-generic div.container`
 */
function hestia_before_big_title_section_content_trigger() {
    do_action( 'hestia_before_big_title_section_content_hook' );
}

/**
 * Hook at the top of the Big title / Slider section content
 *
 * HTML context: just after `div#carousel-hestia-generic div.container`
 */
function hestia_top_big_title_section_content_trigger() {
    do_action( 'hestia_top_big_title_section_content_hook' );
}

/**
 * Hook after the button in Big Title Section
 *
 * HTML context: inside `div.big-title-content div.buttons`
 */
function hestia_big_title_section_buttons_trigger() {
    do_action( 'hestia_big_title_section_buttons' );
}

/**
 * Hook at the bottom of the Big title / Slider section content
 *
 * HTML context: just before the closing of `div#carousel-hestia-generic div.container`
 */
function hestia_bottom_big_title_section_content_trigger() {
    do_action( 'hestia_bottom_big_title_section_content_hook' );
}

/**
 * Hook just after the Big title / Slider section content
 *
 * HTML context: after `div#carousel-hestia-generic div.container`
 */
function hestia_after_big_title_section_content_trigger() {
    do_action( 'hestia_after_big_title_section_content_hook' );
}

/**
 * Hook just after the Big title / Slider section
 *
 * HTML context: after `div#carousel-hestia-generic`
 */
function hestia_after_big_title_section_trigger() {
    do_action( 'hestia_after_big_title_section_hook' );

/* About section */
/**
 * Hook just before the About section
 *
 * HTML context: before `section.hestia-about`
 */
function hestia_before_about_section_trigger() {
    do_action( 'hestia_before_about_section_hook' );
}

/**
 * Hook just after the About section
 *
 * HTML context: after `section.hestia-about`
 */
function hestia_after_about_section_trigger() {
    do_action( 'hestia_after_about_section_hook' );
}

0 个答案:

没有答案