This file contains hidden or 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
using System; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ |
This file contains hidden or 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
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); |
This file contains hidden or 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
/* Dynamic top menu positioning | |
* | |
*/ | |
var num = 300; //number of pixels before modifying styles | |
$(window).bind('scroll', function () { | |
if ($(window).scrollTop() > num) { | |
$('.navbar').addClass('navbar-fixed-top'); | |
} else { |
This file contains hidden or 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
<object type="application/x-shockwave-flash" width="200" height="250" data="http://www.diarioelranco.cl/wp-content/publicidad/2013/larrainyfuenzalida.swf"> | |
<param name="movie" value="video.swf"> | |
<param name="wmode" value="transparent"> | |
<!--[if lte IE 6 ]> | |
<embed src="http://www.diarioelranco.cl/wp-content/publicidad/2013/larrainyfuenzalida.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="200" height="250"></embed> | |
<![endif]--> | |
<!-- ultimate fallback when there is no HTML5 video support and no Flash support --> | |
<img src="http://placehold.it/200x250" width="200" height="250"> | |
</object> |
This file contains hidden or 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 | |
add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 ); | |
function my_deregister_javascript() { | |
wp_deregister_script( 'contact-form-7' ); | |
} | |
<?> |
This file contains hidden or 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 | |
//http://wordpress.stackexchange.com/questions/39918/wordpress-hooks-filters-insert-before-content-or-after-title | |
function theme_slug_filter_the_title( $title ) { | |
$custom_title = 'YOUR CONTENT GOES HERE'; | |
$title .= $custom_title; | |
return $title; | |
} | |
add_filter( 'the_title', 'theme_slug_filter_the_title' ); | |
?> |
This file contains hidden or 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
$('myOjbect').css('background-image', 'url(' + imageUrl + ')'); |
This file contains hidden or 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
comerybeber = 'info.json' | |
$.getJSON( comerybeber, function() { | |
console.log( "success" ); | |
}) | |
.done(function( data ) { | |
// console.log(data); | |
$.each( data, function( i, item ) { | |
console.log(this); | |
console.log(item.latitud); |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer