Created
September 27, 2018 09:54
-
-
Save splintor/7c1652b9bbe12b32176598eb94f7009c to your computer and use it in GitHub Desktop.
OzVeshalom - Alchem modifications
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
.widget-box { text-align: center } | |
.widget-box h2::after { display: none } | |
.site-nav > ul > li.current-menu-item > a { color: #fdd200 } | |
form.search-form { | |
background-color: white; | |
margin-top: 7px; | |
} | |
In functions.php, at the end, add these lines: | |
function custom_excerpt_length( $length ) { | |
return 100; | |
} | |
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); | |
(spd.co.il, our host, prevent saving it from WordPress interface, so it needs to be done from the host file management option at | |
http://ozveshalom.org.il:2222/CMD_FILE_MANAGER/domains/ozveshalom.org.il/public_html/blog/wp-content/themes/alchem/functions.php?action=edit - user: ozveshal, password: ozveshalom1) | |
Old URL: | |
http://lilo.raid.co.il:2222/CMD_FILE_MANAGER/domains/ozveshalom.org.il/public_html/blog/wp-content/themes/alchem/functions.php?action=edit - user: ozveshal, password: ozveshalom1) | |
In content-single.php, add this line before the <section> tag: | |
<script> | |
window.addEventListener('load', function() { | |
var link = jQuery('#redirectLink'); | |
link.closest('.entry-content').replaceWith('<iframe frameborder="0" scrolling="no" width="100%" src="' + link.attr('href') + | |
'" onload="this.style.height = this.contentWindow.document.body.scrollHeight + \'px\'">'); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment