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
/** Sets up WordPress vars and included files. */ | |
require_once(ABSPATH . 'wp-settings.php'); | |
/** Just before that, paste this: */ | |
/** Rename the wp-content folder to assets and direct WP to it */ | |
define ('WP_CONTENT_FOLDERNAME', 'assets'); | |
define ('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME); | |
define ('WP_CONTENT_URL', 'http://yourdomain.com/'.WP_CONTENT_FOLDERNAME); |
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
CSS | |
/* icon */ .custom-navbar .fa {font-size:25px} | |
@media (max-width:767px) { | |
.custom-navbar .navbar-right { | |
float: right; | |
padding-right: 15px; | |
} | |
.custom-navbar .nav.navbar-nav.navbar-right li { |
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_nav_menu( 'navbar-primary' ) ) { | |
} ?> |
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 | |
function my_nav_wrap() { | |
// default value of 'items_wrap' is <ul id="%1$s" class="%2$s">%3$s</ul>' | |
// open the <ul>, set 'menu_class' and 'menu_id' values | |
$wrap = '<ul id="%1$s" class="%2$s">'; | |
// get nav items as configured in /wp-admin/ | |
$wrap .= '%3$s'; | |
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
//animate.css | |
jQuery(document).ready(function() { | |
jQuery('.st_bounceInLeft').addClass("bt_hidden").viewportChecker({ | |
classToAdd: 'bt_visible animated bounceInLeft', | |
offset: 0, | |
repeat: true, | |
callbackFunction: function(elem, action){}, | |
scrollHorizontal: false |
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
//Animate carousel height change | |
//Désactivé, ça déconne dans le modal : le premier slide a une hauteur de 0px | |
function bsCarouselAnimHeight() | |
{ | |
$('.carousel').carousel({ | |
interval: 5000 | |
}).on('slide.bs.carousel', function (e) | |
{ | |
var nextH = $(e.relatedTarget).height(); | |
$(this).find('.active.item').parent().animate({ height: nextH }, 500); |
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
//Ajouter une class css a wp_get_attachment_link() pour empêcher qu'une transition animsition apparaisse à l'ouvertue de magnific popup | |
function startup_reloaded_modify_attachment_link( $markup, $id, $size, $permalink ) { | |
if (of_get_option( 'page-transition' )){ | |
global $post; | |
if ( ! $permalink ) { | |
$markup = str_replace( '<a href', '<a class="no-animsition" href', $markup ); | |
} | |
return $markup; | |
} | |
} |
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
<html> | |
<head> | |
<link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'> | |
<style type="text/css"> | |
#content{ | |
font-family: 'Lato', sans-serif; | |
text-align:justify; | |
font-size:14px; | |
} | |
</style> |
NewerOlder