Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

TrueQAP trueqap

🎯
Focusing
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
trueqap / style.css
Created Oct 31, 2019
DIVI fix cart icon on mobile
View style.css
#et-secondary-menu {
display: block!important;
}
@media screen and (max-width: 767px) {
#et-secondary-menu {
margin-bottom: 16px;
}
}
View .htaccess
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
@trueqap
trueqap / divi.js
Created Sep 17, 2019
Divi social ikonok megnyitása új ablakban
View divi.js
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".et-social-icon a").attr('target', 'blank');
});
</script>
@trueqap
trueqap / functions.php
Created Sep 1, 2019
WordPress Clone Role
View functions.php
<?php
add_action('init', 'kisker_role');
function kisker_role()
{
global $wp_roles;
if (!isset($wp_roles)) {
$wp_roles = new WP_Roles();
@trueqap
trueqap / style.css
Created Aug 30, 2019
WordPress hide links when the user is not logged in
View style.css
body:not(.logged-in) .example {
display: none !important;
}
@trueqap
trueqap / functions.php
Created Aug 16, 2019
Hide Divi project menu
View functions.php
<?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": "http://schema.org/",
"@type": "Product",
"name": "Cyberpunk 2077",
"image": "a te keped eleresi utvonala",
"brand": {
"@type": "Organization",
"name": "a weboldalad neve"
},
@trueqap
trueqap / funtions.php
Created May 4, 2019
DIVI WooCommerce search
View funtions.php
function my_search_form( ) {
ob_start();
$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( '/' ) ); ?>">
<div>
<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
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
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['billing']['billing_state']);
// unset($fields['shipping']['shipping_country']); //ország letiltása
unset($fields['shipping']['shipping_state']);
return $fields;
You can’t perform that action at this time.