GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Editing specific wordpress category pages (https://gfy.com/showthread.php?t=1279847)

jscott 09-21-2017 12:30 PM

Editing specific wordpress category pages
 
Anyone know how do you edit wordpress category pages?

For each category pages i want to have section on top to add adverts or texts.

I tried with "enhanced category pages" plugin but that doesnt work and seems unsupported now.

thx

k33n 09-21-2017 11:52 PM

I think you need custom pages for this.

Venum 09-22-2017 04:08 AM

Quote:

Originally Posted by jscott (Post 22008917)
Anyone know how do you edit wordpress category pages?

For each category pages i want to have section on top to add adverts or texts.

thx

So every category category specified ad, or same add on all category pages?

Depends on theme, usually it is category.php file.

jscott 09-22-2017 05:02 AM

no no, i want each category to have small section up top for descriptions of each category, possibly some small adverts in there too, each category diff text, diff adverts.

This plugin works perfectly on my default wordpress theme sites, but does not work with my custom themes

catmaster 09-22-2017 06:16 AM

WordPress will search for specific files in your custom WordPress Theme directory to create your category archive pages.
The hierarchy is fairly simple. For instance, suppose the slug of the Category is news and the Category ID is 6. The Template Hierarchy specifies that WordPress will use the first Template file it finds in your Custom Theme's directory from the following list:
  1. category-slug.php
  2. category-ID.php
  3. category.php
  4. archive.php
  5. index.php

That is, if you do not have a category-slug.php (lets say category-news.php), WordPress will check for a category-ID.php (like category-6.php), and so on in your custom Wordpress Theme Directory.

If you need some assistance for any kind of custom modifications please let me know by PM :thumbsup

jscott 09-22-2017 08:45 AM

catmaster thanks a lot, this is the kind of stuff that i'd actually prefer custom mods for, hitting you up on PM lil later today

thank you!

just_beginner 09-23-2017 12:53 AM

Quote:

Originally Posted by jscott (Post 22010155)
catmaster thanks a lot, this is the kind of stuff that i'd actually prefer custom mods for, hitting you up on PM lil later today

thank you!

More info here https://codex.wordpress.org/Category_Templates

magneto664 09-23-2017 05:45 AM

Quote:

Originally Posted by jscott (Post 22008917)
For each category pages i want to have section on top to add adverts or texts.

The best way is a create a widget areas on this space so you can use it after via adverts plugins or simply code from your widget page. or maybe your theme have already widget space on categories.

BettyBoob1 09-25-2017 11:30 AM

For the descriptions of each category to show on page I went into my category.php file and added this...

<?php
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>

It worked for me, I just had to play around with where I placed it in the php file. I haven't tried adding any ads but it might be possible if you go to (edit category) for each category you have and add the text you want and ad code into the description field.

Colmike9 09-25-2017 12:06 PM

Quote:

Originally Posted by BettyBoob1 (Post 22013735)
For the descriptions of each category to show on page I went into my category.php file and added this...

<?php
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>

It worked for me, I just had to play around with where I placed it in the php file. I haven't tried adding any ads but it might be possible if you go to (edit category) for each category you have and add the text you want and ad code into the description field.

His theme didn't have category.php lol, but I got it. :upsidedow

Smart Fred 10-07-2017 10:23 AM

Quote:

Originally Posted by jscott (Post 22009827)
no no, i want each category to have small section up top for descriptions of each category, possibly some small adverts in there too, each category diff text, diff adverts.

This plugin works perfectly on my default wordpress theme sites, but does not work with my custom themes

Supposing your categories are pornstars. Do you mean you want to add their bio, vitals, links to Twitter, to their official sites and so on.

If yes, PM me your email, I will show you what I was able to do for my sites and how.

jscott 10-07-2017 07:29 PM

yo SmartFred would love to see what you have. Use icq? 130321510 or can pm me if you have time.
Thx man

Smart Fred 10-08-2017 03:15 AM

Quote:

Originally Posted by jscott (Post 22029017)
yo SmartFred would love to see what you have. Use icq? 130321510 or can pm me if you have time.
Thx man

I got
"jscott has exceeded their stored private messages quota and cannot accept further messages until they clear some space."
when trying to PM you
and I don't use ICQ from a long time

jscott 10-08-2017 09:33 AM

pls try now, damn gfy and their skimpy inbox's!!!

Smart Fred 10-08-2017 10:22 AM

Quote:

Originally Posted by jscott (Post 22029423)
pls try now, damn gfy and their skimpy inbox's!!!

It looks like it worked. PM sent.


All times are GMT -7. The time now is 02:33 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc