Skip to content

Instantly share code, notes, and snippets.


TrueQAP trueqap

Block or report user

Report or block trueqap

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
trueqap / functions.php
Created Aug 16, 2019
Hide Divi project menu
View functions.php
add_filter( 'et_project_posttype_args', 'hide_divi_project', 10, 1 );
function hide_divi_project( $args ) {
return array_merge( $args, array(
'public' => false,
'exclude_from_search' => false,
'publicly_queryable' => false,
'show_in_nav_menus' => false,
'show_ui' => false
View schema.js
<script type="application/ld+json">
"@context": "",
"@type": "Product",
"name": "Cyberpunk 2077",
"image": "a te keped eleresi utvonala",
"brand": {
"@type": "Organization",
"name": "a weboldalad neve"
trueqap / funtions.php
Created May 4, 2019
DIVI WooCommerce search
View funtions.php
function my_search_form( ) {
$post_type = isset($_GET['post_type'])?$_GET['post_type']:'';
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label class="screen-reader-text" for="s"><?php _x( 'Keresés:', 'label' ); ?></label>
<select class="searchfor">
<option value="" <?php selected( $post_type , '' ); ?>>Weboldalon</option>
<option value="product" <?php selected( $post_type , 'product' ); ?>>Termékek között</option>
trueqap / Style.css
Last active Mar 24, 2019
Divi menüpontok aláhúzása
View Style.css
#top-menu .current-menu-item a::before,
#top-menu .current_page_item a::before {
content: "";
position: absolute;
z-index: 2;
left: 0;
right: 0;
#top-menu li a:before {
content: "";
trueqap / funtions.php
Created Mar 4, 2019
WooCommerce megye hiba
View funtions.php
function custom_checkout_fields($fields)
// unset($fields['billing']['billing_country']); //ország letiltása
// unset($fields['shipping']['shipping_country']); //ország letiltása
return $fields;
trueqap / style.css
Last active Jul 14, 2019
DIVI menu fix for monitors with smaller screens
View style.css
@media only screen and (max-width: 1200px) and (min-width: 769px) {
.container.clearfix.et_menu_container, #top-header .container.clearfix {
max-width: 95% !important;
width: 100%;}}
@media only screen and (max-width: 1100px) and (min-width: 769px) {
#top-menu li {
padding-right: 13px !important;}
#top-menu li a {
font-size: 0.9375rem !important;}}
trueqap / funtions.php
Last active Jul 14, 2019
Disable WordPress password reset
View funtions.php
function disable_password_reset() { return false; }
add_filter ( 'allow_password_reset', 'disable_password_reset' );
View content-upload.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
trueqap / change.log
Created Dec 20, 2018
WordPress 5.0.2 List of Files Revised
View change.log
trueqap / function.php
Created Dec 15, 2018
Add the AffiliateWP menu (with content) to the WooCommerce My Account section
View function.php
// Add new slug
function hellowp_add_premium_support_endpoint()
add_rewrite_endpoint('affiliate-partner', EP_ROOT | EP_PAGES);
add_action('init', 'hellowp_add_premium_support_endpoint');
You can’t perform that action at this time.