Skip to content

Instantly share code, notes, and snippets.

https://raw.githubusercontent.com/elegantthemes/monarch/165b8ce1e61b22ff071e83f521ec6eef06cbd2a9/monarch.php?token=AA77gHDzFdI68shyIxGVb-zC8h48H_Waks5bekdvwA%3D%3D
eh, vedem noi[et_pb_section bb_built="1" admin_label="Hero Section Desktop" background_image="https://www.ourgoldenworld.com/wp-content/uploads/2016/11/background-confined-t-2000x1000.png" inner_shadow="on" parallax_method="off" custom_padding_last_edited="off|desktop" background_color="#ffffff" custom_padding_tablet="50px|0|50px|0" _builder_version="3.7" next_background_color="#ffffff" bottom_divider_style="slant2" module_id="top" collapsed="on" bottom_divider_flip="horizontal" bottom_divider_color="#554000" background_size="contain" parallax="on" disabled_on="on||" disabled="off"][et_pb_row admin_label="row" background_position="""""""""""""&
/*
* Remove sidebar on all archive pages
*/
.search #main-content .container::before,
.archive #main-content .container::before {
display: none;
}
.search #left-area,
.archive #left-area {
width: 100% !important;
<?php
/**
* Wrapper for MailChimp's API.
*
* @since 1.1.0
*
* @package ET\Core\API\Email
*/
class ET_Core_API_Email_MailChimp extends ET_Core_API_Email_Provider {
/*! ET frontend-builder-scripts.js */
(function($){
var $et_window = $(window);
window.et_load_event_fired = false;
window.et_is_transparent_nav = $( 'body' ).hasClass( 'et_transparent_nav' );
window.et_is_vertical_nav = $( 'body' ).hasClass( 'et_vertical_nav' );
window.et_is_fixed_nav = $( 'body' ).hasClass( 'et_fixed_nav' );
window.et_is_minified_js = $( 'body' ).hasClass( 'et_minified_js' );
window.et_is_minified_css = $( 'body' ).hasClass( 'et_minified_css' );
Locate this piece of code:
wp_mail( apply_filters( 'et_contact_page_email_to', $contact_email ),
et_get_safe_localization( sprintf(
__( 'New Message From %1$s%2$s', 'et_builder' ),
sanitize_text_field( html_entity_decode( $et_site_name, ENT_QUOTES, 'UTF-8' ) ),
( '' !== $title ? sprintf( _x( ' - %s', 'contact form title separator', 'et_builder' ), sanitize_text_field( html_entity_decode( $title, ENT_QUOTES, 'UTF-8' ) ) ) : '' )
) ),
! empty( $email_message ) ? $email_message : ' ',
apply_filters( 'et_contact_page_headers', $headers, $contact_name, $contact_email )
function fwportfolio_module_setup() {
get_template_part( 'modules/FullwidthPortfolio' ); remove_shortcode( 'et_pb_fullwidth_portfolio' );
add_shortcode( 'et_pb_fullwidth_portfolio', array( new Cu_ET_Builder_Module_Fullwidth_Portfolio(), '_shortcode_callback' ) );
}
add_action( 'et_builder_ready', 'fwportfolio_module_setup' );
<?php
class Cu_ET_Builder_Module_Fullwidth_Portfolio extends ET_Builder_Module_Type_PostBased {
function init() {
$this->name = esc_html__( 'Fullwidth Portfolio', 'et_builder' );
$this->slug = 'et_pb_fullwidth_portfolio';
$this->vb_support = 'on';
$this->fullwidth = true;
// need to use global settings from the slider module
<article class="et_pb_post clearfix post type-post format-standard has-post-thumbnail hentry">
<a href="POST TITLE URL" class="entry-featured-image-url">
<img src="LINK TO POST THUMBNAIL" alt="POST TITLE" width="1080" height="675">
</a>
<h2 class="entry-title"><a href="POST URL">POST TITLE</a></h2>
<p class="post-meta">
by <span class="author vcard"> <a href="AUTHOR URL" rel="author">AUTHOR NAME</a></span> |
<span class="published">PUBLISHED DATE</span> |
function my_remove_default_et_pb_custom_search() {
remove_action( 'pre_get_posts', 'et_pb_custom_search' );
add_action( 'pre_get_posts', 'my_et_pb_custom_search' );
}
add_action( 'wp_loaded', 'my_remove_default_et_pb_custom_search' );
function my_et_pb_custom_search( $query = false ) {
if ( is_admin() || ! is_a( $query, 'WP_Query' ) || ! $query->is_search ) {
return;