Skip to content

Instantly share code, notes, and snippets.

Avatar

eMarket Design emarket-design

View GitHub Profile
@emarket-design
emarket-design / WP Ticket latest tickets
Created Jan 8, 2015
Display Latest tickets on your WordPress home page
View WP Ticket latest tickets
add_filter( 'pre_get_posts', 'my_get_posts' );
function my_get_posts( $query ) {
if ( is_home() && $query->is_main_query() )
$query->set( 'post_type', array( 'emd_ticket' ) );
return $query;
}
@emarket-design
emarket-design / How to create Infinite Scroll Article Wall
Created Oct 24, 2015
Knowledge Center Enterprise WordPress Plugin - How to create Infinite Scroll Article Wall
@emarket-design
emarket-design / How to create KC Documenter Page
Created Oct 24, 2015
Knowledge Center Enterprise WordPress Plugin - How to create KC Documenter Page
@emarket-design
emarket-design / How to create KC Video Wall
Created Oct 24, 2015
Knowledge Center Enterprise WordPress Plugin - How to create KC Video Wall
@emarket-design
emarket-design / How to create KC Panels
Created Oct 24, 2015
Knowledge Center Enterprise WordPress Plugin - How to create KC Panels
@emarket-design
emarket-design / Using Visual Shortcode Builder to create specific groupings.
Created Oct 24, 2015
Knowledge Center Enterprise WordPress Plugin - Using Visual Shortcode Builder to create specific groupings.
View Using Visual Shortcode Builder to create specific groupings.
[std_articles filter="tax::kb_group::is::basic;attr::emd_article_featured::is::1;"]
@emarket-design
emarket-design / How to display Recent Content
Last active Oct 24, 2015
Knowledge Center Enterprise WordPress Plugin - How to display Recent Content and setting Title as Recent Content
View How to display Recent Content
[std_recent_articles set="glob::glb_recent_articles_title::is::Recent Content;"]
@emarket-design
emarket-design / modal triggered within a Twitter's Bootstrap tab
Last active Nov 11, 2015
WP App Studio modal triggered within a Twitter's Bootstrap tab
View modal triggered within a Twitter's Bootstrap tab
<div id="map-icon">
<a id="maplink" title="Map It" data-toggle="modal" data-target="#mapmodal">
<img src="IMGDIR/mapit_small.png">
</a>
<div class="modal fade emd-bs-modal" id="mapmodal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div style="position:absolute;top:0;right:0;z-index:2">
<a class="close" data-dismiss="modal" aria-label="Close">
<img aria-hidden="true" src="IMGDIR/close.png">
@emarket-design
emarket-design / font-size adjuster
Created Nov 11, 2015
Adjusts emd-container class font size depending on the view port; usefull adjusting text in containers.
View font-size adjuster
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
div.emd-container{
font-size: 70% !important;
line-height:normal !important;;
}
}
/* Extra Small Devices, Phones */
@emarket-design
emarket-design / WPAS Responsive Text
Last active Nov 16, 2015
Responsive text used in WP App Studio apps
View WPAS Responsive Text
/* Large desktops and laptops */
@media (min-width: 1200px) {
div.emd-container .textHuge {
font-size: 110px !important;
line-height: normal;
}
div.emd-container .textxxLarge {
font-size: 60px !important;
line-height: normal;