-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed css rules Added responsive css Added Off-Canvas Menu Added Scroll-To-Top Added SmoothScroll
- Loading branch information
Showing
12 changed files
with
1,056 additions
and
64 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
!.gitignore | ||
!wp-content/ | ||
!gwtd3.sql | ||
!dev.gwtd3.sql | ||
!LICENSE | ||
!README.md |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
# wptranslationday.org | ||
Theme and custom plugins for wptranslationday.org | ||
**Theme and custom plugins for wptranslationday.org** | ||
|
||
--- | ||
|
||
## gwtd3 theme | ||
|
||
**Landing Page ( to be continued as a theme :D ) based on _s.** | ||
|
||
Latest stable: **v1.0.3** | ||
|
||
Currently includes: | ||
|
||
* Responsive design | ||
* Off-Canvas mobile menu | ||
* Scroll-to-top | ||
* Smooth Scroll on # links. | ||
* Customizer - Main Header | ||
* Extra custom header for the non-landing page posts. | ||
* Dev stuff: .sql export (latest: dev.gwtd3.sql) for easy setup, wp-content folder with all the uploaded files. | ||
|
||
Tested on latest: Chrome, Firefox, Edge, IE11 |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,44 @@ | ||
// Scripting goes here! | ||
(function( $ ) { | ||
$( document ).ready( function( $ ) { | ||
|
||
$( '#mobile-menu-trigger' ).click( function() { | ||
toggleNav(); | ||
}); | ||
|
||
function toggleNav() { | ||
if ( $( '#site-wrapper' ).hasClass( 'show-nav' ) ) { | ||
$( '#site-wrapper' ).removeClass( 'show-nav' ); | ||
} else { | ||
$( '#site-wrapper' ).addClass( 'show-nav' ); | ||
} | ||
} | ||
|
||
|
||
$( window ).scroll( function() { | ||
if ( $( this ).scrollTop() < 400 ) { | ||
$( '#to-top' ).fadeOut(); | ||
} else { | ||
$( '#to-top' ).fadeIn(); | ||
} | ||
} ); | ||
|
||
$( 'a[href*=\\#]' ).on( 'click', function( event ) { | ||
if ( $( this ).attr( 'id' ) === 'smoothup' ) { | ||
$( 'html, body' ).animate( { | ||
scrollTop: 0 | ||
}, 500 ); | ||
return false; | ||
} else { | ||
if ( $( this ).parent().parent().parent().parent().attr( 'id' ) === 'site-menu' ) { | ||
toggleNav(); | ||
} | ||
event.preventDefault(); | ||
$( 'html,body' ).animate( { | ||
scrollTop: $( this.hash ).offset().top | ||
}, 500 ); | ||
return false; | ||
} | ||
} ); | ||
|
||
} ); | ||
})( jQuery ); |
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
Oops, something went wrong.