Skip to content

Instantly share code, notes, and snippets.

@Pavracer
Pavracer / remove_parent_filters_password.php
Created May 16, 2020 05:28
remove_parent_filters_password
function myremove_parent_filters(){
remove_filter('the_password_form', 'et_password_form');
}
add_action( 'after_setup_theme', 'myremove_parent_filters' );
function myet_password_form() {
$pwbox_id = rand();
$form_output = sprintf(
@Pavracer
Pavracer / Text
Last active May 12, 2020 03:34
How To Change Default Thumbnail Sizes In Extra
All Extra thumbnails sizes are listed in one file: core.php. It's possible to redefine all of them or just few by adding the following code into functions.php file in child theme:
In the array above you can see the sizes for different pages/modules. Just modify what you need. That's it.
I'd suggest connecting to your site via FTP to make these changes, it will be easier to rollback the changes if you make a syntax error. It is better to use a child theme to make PHP changes. I attached the child theme file at the end of my message.
Let me know how it goes. 😃
<p style="text-align: center;"><span style="text-decoration: line-through; font-size: 26px;"><strong style="color: #333333; text-align: center; text-decoration: line-through;">9 990 Ft helyett</strong></span></p>
<p style="text-align: center;"> <strong style="color: #333333; font-size: 22px; text-align: center;">csak  7 490 Ft</strong></p>
 <span style="font-size: 14px;">Havonta fizetendő</span>
Teljes hozzáférés a Kisiskola szoftveréhez
@Pavracer
Pavracer / Latest.php
Last active October 1, 2020 12:50
Extra Trending post change to Latest
<?php $args = array(
'numberposts' => '1',
);
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ):
$post_id = $recent['ID'];
$post_url = get_permalink($recent['ID']);
$post_title = $recent['post_title'];
$post_content = $recent['post_content'];
@Pavracer
Pavracer / Collapse-language-switcher-on-the-mobele.js
Created May 7, 2020 06:17
collapse language switcher on the mobile
<script>
jQuery(document).ready(function(){
jQuery(".menu-item-language.menu-item-has-children").addClass('first-level');
jQuery(".menu-item-language .sub-menu li").addClass('second-level');
jQuery('.menu-item-language.menu-item-has-children a[title="EN"]').click(function(event){
event.preventDefault();
});
});
</script>
/* Color Scheme - Green - Replace */
.et_color_scheme_green a {
color: #88a00a;
}
.et_color_scheme_green .et_pb_counter_amount,
.et_color_scheme_green .et_pb_featured_table .et_pb_pricing_heading,
.et_color_scheme_green #top-header {
background: #88a00a !important;
}
.pinkshadow p a { box-shadow: inset 0 -7px 0 0 #fcdedb; border-radius: 0px; }
.pinkshadow p a:hover { background-color: #fcdedb; }
@Pavracer
Pavracer / gist:b8ecda4967f9d8c63c01f59feedd9ffb
Last active June 14, 2019 05:52
How to change thumbnail size in Divi
Description
Example
To change thumbnail size you will need to add this code to the functions.php
add_filter( 'et_pb_blog_image_width', 'custom_image_width' );
function custom_image_width($width) {
return '600';
}
+79514057942