Let me explain about "categories" on WordPress

Discussion Of All Legal Topics Is Fine Anything Goes. Be Respectful of Others. No Personal Information or Attacks.
All Traffic, Link, Banner, Push Notification and Advertising, Offers & Requests Here,.
Domains & Websites For Sale and Requests Here.
Keep One thread per person & No More Than 1 Weekly Bump.
Colmike7
Banned
Banned
Posts: 1670
Joined: May 23rd, 2018, 12:21 pm
Title: (>^-^)b

#16

Post by Colmike7 » September 8th, 2018, 5:45 pm

..Off the top of my head, I'm not sure if the place to just edit that is in functions.php, or if it's even a good idea because of updates. So adding a filter is a much better idea than my first thought. :)




User avatar
HeidiHoe
Verified Member
Verified Member
Posts: 1653
Joined: February 3rd, 2018, 12:20 pm
Title: Resident Genius

#17

Post by HeidiHoe » September 8th, 2018, 6:36 pm

Colmike7 wrote: ↑
September 8th, 2018, 5:45 pm
..Off the top of my head, I'm not sure if the place to just edit that is in functions.php, or if it's even a good idea because of updates. So adding a filter is a much better idea than my first thought. :)
Preferably in a child theme so theme updates won't wipe it out. It takes just a few minutes to do a child theme and it can eliminate future surprises.
The Fourth Turning Is Here

ezdoesitz
Verified Member
Verified Member
Posts: 483
Joined: April 8th, 2018, 6:37 pm

#18

Post by ezdoesitz » September 8th, 2018, 6:50 pm

My wp themes say twenty seventeen, how do I get child theme.




User avatar
HeidiHoe
Verified Member
Verified Member
Posts: 1653
Joined: February 3rd, 2018, 12:20 pm
Title: Resident Genius

#19

Post by HeidiHoe » September 8th, 2018, 7:03 pm

ezdoesitz wrote: ↑
September 8th, 2018, 6:50 pm
My wp themes say twenty seventeen, how do I get child theme.
It's easy, all you need to create is a style.css and a functions.php file, stick 'em in a folder and activate the theme. Any changes that you make to style and functions you'll make in the child theme. That way if your theme updates your changes won't be overwritten. WordPress will load your child theme in addition to your parent theme and anything located in the child will override the parent. Also if you want to override your header, footer, 404, or whatever you just place a corresponding file in the child (using the same the directory tree as in the parent) and that file will be used instead.

It's two files in a folder, a few lines of code, that's it. Here are the instructions on how to do a child theme:
https://codex.wordpress.org/Child_Themes
The Fourth Turning Is Here

User avatar
HeidiHoe
Verified Member
Verified Member
Posts: 1653
Joined: February 3rd, 2018, 12:20 pm
Title: Resident Genius

#20

Post by HeidiHoe » September 8th, 2018, 7:31 pm

ezdoesitz wrote: ↑
September 8th, 2018, 6:50 pm
My wp themes say twenty seventeen, how do I get child theme.
Create a folder called twentyseventeen-child and save style.css and functions.php to folder, upload and set as your theme.

Code for style.css

Code: Select all

/******************************************************************
Theme Name: twentyseventeen Child
Theme URI: https://yourdomain.com/
Description: Child theme for twentyseventeen theme. 
Author: ezdoesitz
Author URI: https://yourdomain.com/
Template: twentyseventeen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentyseventeen-child
******************************************************************/
Code for functions.php

Code: Select all

<?php
function my_theme_enqueue_styles() {

    $parent_style = 'twentyseventeen-style';

    wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    wp_enqueue_style( 'child-style',
        get_stylesheet_directory_uri() . '/style.css',
        array( $parent_style ),
        wp_get_theme()->get('Version')
    );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );

add_filter( 'widget_categories_args', 'force_widget_cat_args' );
function force_widget_cat_args($cat_args) {
    $cat_args['hide_empty'] = 0;
    return $cat_args;
}

?>
I already added the category filter for you. Any changes you might want to make to style you can just add after the header in your child style file. It'll add to or override what's in the parent :)
The Fourth Turning Is Here

User avatar
T.B.W
Verified Member
Verified Member
Posts: 1152
Joined: March 26th, 2018, 1:34 pm

#21

Post by T.B.W » September 10th, 2018, 9:49 am

So you not only know how to design but also code, you are one smart lady heidihoe




User avatar
HeidiHoe
Verified Member
Verified Member
Posts: 1653
Joined: February 3rd, 2018, 12:20 pm
Title: Resident Genius

#22

Post by HeidiHoe » September 11th, 2018, 1:37 am

T.B.W wrote: ↑
September 10th, 2018, 9:49 am
So you not only know how to design but also code, you are one smart lady heidihoe
Actually I'm just a hack that enjoys what she does. I can be notoriously cheap, so I learn by necessity. lol. Everything I need to learn I find on the web for free. I just ask google and go from there. Reading tutorials, trial and error. It's my version of having fun! I rather hunt down how to do something then do what I should be doing to make more money. It's damn near a shortcoming.
The Fourth Turning Is Here

blingman
Verified Member
Verified Member
Posts: 1134
Joined: May 13th, 2018, 11:19 am

#23

Post by blingman » September 11th, 2018, 7:01 pm

HeidiHoe wrote: ↑
September 11th, 2018, 1:37 am
T.B.W wrote: ↑
September 10th, 2018, 9:49 am
So you not only know how to design but also code, you are one smart lady heidihoe
Actually I'm just a hack that enjoys what she does. I can be notoriously cheap, so I learn by necessity. lol. Everything I need to learn I find on the web for free. I just ask google and go from there. Reading tutorials, trial and error. It's my version of having fun! I rather hunt down how to do something then do what I should be doing to make more money. It's damn near a shortcoming.
On the old sponsorchat you said you were into swinging, is that still true.




User avatar
HeidiHoe
Verified Member
Verified Member
Posts: 1653
Joined: February 3rd, 2018, 12:20 pm
Title: Resident Genius

#24

Post by HeidiHoe » September 11th, 2018, 7:12 pm

blingman wrote: ↑
September 11th, 2018, 7:01 pm
On the old sponsorchat you said you were into swinging, is that still true.
I haven't been actively swinging over the past year. It hasn't been a priority in my life. I like new partners, not reruns, and that takes effort. So yeah... I'm still game ;)
The Fourth Turning Is Here

User avatar
viking
Verified Member
Verified Member
Posts: 1419
Joined: March 18th, 2018, 8:28 pm

#25

Post by viking » September 12th, 2018, 2:50 pm

HeidiHoe wrote: ↑
September 11th, 2018, 7:12 pm
I haven't been actively swinging over the past year. It hasn't been a priority in my life. I like new partners, not reruns, and that takes effort. So yeah... I'm still game ;)
I hear you it's the same with me. Casual sex is fine when I started out but I prefer being with a woman for more than a one night stand.


Trouble is I can't find that woman.




User avatar
pussyhunter
Verified Member
Verified Member
Posts: 959
Joined: July 13th, 2018, 3:40 am

#26

Post by pussyhunter » September 14th, 2018, 6:25 am

How did this thread change from the initial subject to swinging rofl not that I am complaining




User avatar
TheButcher
Administrator
Administrator
Posts: 17522
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#27

Post by TheButcher » September 14th, 2018, 8:18 pm

pussyhunter wrote: ↑
September 14th, 2018, 6:25 am
How did this thread change from the initial subject to swinging rofl not that I am complaining

Who cares it is more exciting to discuss swinging than WP categories amigo :twisted:

User avatar
nudelinks
Verified Member
Verified Member
Posts: 1231
Joined: February 26th, 2018, 8:12 pm

#28

Post by nudelinks » September 15th, 2018, 3:54 pm

TheButcher wrote: ↑
September 14th, 2018, 8:18 pm
Who cares it is more exciting to discuss swinging than WP categories amigo :twisted:
you got that one right :geek:




pussylover
Verified Member
Verified Member
Posts: 988
Joined: March 6th, 2018, 10:30 am

#29

Post by pussylover » September 16th, 2018, 8:26 am

WP designers were smart not to show empty categories on the home page of the site




alsporn
Verified Member
Verified Member
Posts: 600
Joined: May 12th, 2018, 4:35 pm

#30

Post by alsporn » September 20th, 2018, 10:11 am

pussylover wrote: ↑
September 16th, 2018, 8:26 am
WP designers were smart not to show empty categories on the home page of the site
yep especially when you start out a new site and it's not all populated with posts




Let me explain about "categories" on WordPress

Post Reply