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
Then you want to type | |
mount -o rw,remount / | |
then for the purposes of lost username type | |
ls /home | |
be aware that is a lower case L then s its not an i, this will then give you the username associated with the admin account. Now to reset the password. |
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
## first in your functions.php add the following: | |
``` | |
//Shortcode to show the module | |
function showmodule_shortcode($moduleid) { | |
extract( shortcode_atts( array('id' =>'*'), $moduleid ) ); | |
return do_shortcode('[et_pb_section global_module="'.$id.'"][/et_pb_section]'); | |
} | |
add_shortcode('showmodule', 'showmodule_shortcode'); | |
``` | |
## then create your single-customCPT.php file duplicating page.php from divi and look for line 45 : |
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
$context:960;// size you want to start calculating | |
@function get-vw($target) { | |
$vw-context: ($context * .01) * 1px; | |
@return ($target/$vw-context) * 1vw; | |
} | |
//usage | |
.page-obituary{ | |
h1{ | |
color: #2b6295; |
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 //called like this on other template get_template_part_extra('templates/products_accordion',[ 'key'=>'protection'] ); ?> | |
//inside the partial... | |
<h2> | |
<?php echo( $template_args['key'] ); ?> | |
</h2> |
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
//The CSS | |
.tocheck {float:left;} | |
@media only screen and (max-width: 800px){ | |
.tocheck {float:none;} | |
} |
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 | |
$custom_post_type = 'team_profiles; | |
$tax_term = 'department'; | |
$terms = get_terms($tax_term); | |
foreach($terms as $term) : | |
?> | |
<h2><?= $term->name;?></h2> | |
<?php | |
$cat_posts_args = array( | |
'post_type' => $custom_post_type, |
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 | |
$prev = get_permalink(get_adjacent_post(false,'',false)); | |
$next = get_permalink(get_adjacent_post(false,'',true)); | |
?> | |
<a href="<?php echo $prev; ?>">Previous Post</a> | |
<a href="<?php echo $next; ?>">Next Post</a> | |
<?php //What if there isn’t a previous or next post? ?> |
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
first, just input following command in the terminal: | |
git branch --all | |
And then you will see the all the branches on local and remote. Something like this: | |
*master | |
remotes/origin/develop | |
remotes/origin/master | |
remotes/origin/web | |
remotes/origin/app |
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
@function get-vw($object_width,$window_width:1440) { | |
$vw: ($window_width * 0.01) * 1px; | |
@return ($object_width / $vw) * 1vw; | |
} | |
@function get-vh($object_height,$window_height:768) { | |
$vh: ($window_height * 0.01) * 1px; | |
@return ($object_height / $vh) * 1vh; | |
} |