Skip to content

Instantly share code, notes, and snippets.

@splintor
Created September 27, 2018 09:54
Show Gist options
  • Save splintor/7c1652b9bbe12b32176598eb94f7009c to your computer and use it in GitHub Desktop.
Save splintor/7c1652b9bbe12b32176598eb94f7009c to your computer and use it in GitHub Desktop.
OzVeshalom - Alchem modifications
.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