This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// change buttons in WYSWIG post editor, edit color palette | |
function change_mce_options( $init ) { | |
$init['theme_advanced_blockformats'] = 'p,address,h2,h3,h4,h5,h6,'; // add tag you want to be available (h1,pre,code) | |
$init['theme_advanced_disable'] = ''; // includes numlist,blockquote,justifyright,justifycenter,pasteword,pastetext etc. | |
$init['theme_advanced_text_colors'] = 'FF00FF,FFFF00,000000'; //add your themes colors here | |
$init['theme_advanced_more_colors'] = false; | |
return $init; | |
} | |
add_filter('tiny_mce_before_init', 'change_mce_options'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Close XAMPP sites here | |
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))"> | |
Order deny,allow | |
Deny from all | |
Allow from ::1 127.0.0.0/8 | |
Allow from all | |
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var | |
</LocationMatch> | |
http://stackoverflow.com/questions/6083323/error-when-trying-to-access-xampp-from-a-network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (has_term('a_term_name', 'your_taxonomy_name')): ?> | |
//stuff here | |
<?php elseif (has_term('another_term_name', 'your_taxonomy_name')): ?> | |
//stuff | |
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get taxonomies terms links | |
function custom_taxonomies_terms_links(){ | |
// get post by post id | |
$post = get_post( $post->ID ); | |
// get post type by post | |
$post_type = $post->post_type; | |
// get post type taxonomies | |
$taxonomies = get_object_taxonomies( $post_type, 'objects' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (get_field('your_field')): ?> | |
<?php the_field('your_field'); ?> | |
<?php endif; ?> | |
<!-- Else example --> | |
<?php if (get_field('your_field')) : ?> | |
<?php the_field('your_field'); ?> | |
<?php else : ?> | |
<!--alternate stuff--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (get_field('page_content_repeater')) { ?> | |
<?php while (the_repeater_field('page_content_repeater')): ?> | |
<?php | |
/* Pull from users select choice in ACF */ | |
$choice1 = 'string_1'; | |
$choice2 = 'string_2'; | |
?> | |
<?php if (get_sub_field('your_selection_field') === $choice1) { ?> | |
<!--Your Content--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Example #1--> | |
<?php //Your Loop Start?> | |
<div class="row your-wrapper"> | |
<div class="col-md-6"> | |
<!--Your stuff with 50% columns--> | |
</div> | |
<div class="duel-clear clearfix"></div> | |
</div> | |
<?php //Your Loop END?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Add carousel-fade to carousel container*/ | |
.carousel-fade .carousel-inner .item { | |
opacity: 0; | |
-webkit-transition-property: opacity; | |
-moz-transition-property: opacity; | |
-o-transition-property: opacity; | |
transition-property: opacity; | |
} | |
.carousel-fade .carousel-inner .active { | |
opacity: 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Static width site for mobile | |
width=size of site--> | |
<meta name="viewport" content="width=950"> |
OlderNewer