- This topic has 21 replies, 2 voices, and was last updated 8 years, 4 months ago by Pratik.
-
AuthorPosts
-
July 17, 2016 at 7:20 am #95567EdwinParticipant
Why does it automatically double space the text in the menu category description if it is more then one short sentence? I want to use single spaced text t looks much better. I have tried adding paragraph tags but it does not fix it.
July 17, 2016 at 10:46 am #95575EdwinParticipantIn general, category descriptions in this theme are very barren. I tried to install various widgets but they don’t seem to function very well. What are my options here? for example why does it need to display “category archives” at the top of the category page? It isn’t necessary and it looks very uninspiring. The description editor is really nonfunctional for the most part. My only option is double spaced text. It also makes SEO very difficult or impossible
July 17, 2016 at 10:52 am #95578PratikParticipantCan you post in with reference to the site url and url of the specific archive pages. I need to check them.
July 17, 2016 at 10:55 am #95579July 17, 2016 at 12:46 pm #95580PratikParticipant@Edwin: To edit this part, you will need to create a child theme. For instructions on child theme, please follow this link: http://catchthemes.com/blog/create-child-theme-wordpress/
Then make a file archive.php and add this code in it: http://pastebin.com/fm3aGeLX
Then add following code in your child theme’s functions.php file: http://pastebin.com/xe6yRyME
This will remove the prefix.
To remove the double spacing use following code in Appearance=> Customize=> Theme Options=> Custom CSS box:
.page-header { line-height: 2.0; }
you can increase/decrease the 2.0 fraction as per required.
Let me know how it goes.
Regards,
PratikJuly 18, 2016 at 11:13 am #95617EdwinParticipantI reviewed this and I have a few questions about the steps.
1) style.css – I entered the Theme name and Template accordingly, should I just leave everything else the same as the parent theme? Or remove it as it is optional?
2) Functions.php – the way the instructions are worded in the link you sent seem ambiguous to me. Please note that I have no experience at what we are attempting to do.
It says that the functions.php file begins with a PHP opening tag and ends with a closing tag. But your sample does not have the closing tag. This throws me off. I don’t know if I add the closing tag and then insert the enque function below the closing tag. But then a bunch more questions come up like does the enque function need a opening and closing tag? Where in the function.php file is it inserted exactly? Above or below? You assume I know these things.
In Theme editor in my wordpress admin I noticed that functions.php file does not have a PHP closing tag….this does not help explain things.
I found useful information at https://codex.wordpress.org/Child_Themes
Their function.php creation instructions make sense but they dont match up with yours.
For example: this step is not necessary in their instructions
<?php
/**
* Child Theme functions and definitions
*
*/They just say add the enque function. There is no mention or sample code concerning the above on their website. Their samples also include the opening and closing php tags.
You say in your instructions “that at this point your childs theme works just fine” how am I supposed to know this? I would not know if it was done correctly, if I used your sample it wouldn’t have a php closing tag – is this correct method?
3) archive.php – if this involves more then just creating a empty archive.php then I need to find instructions for it which I have not searched for yet. Otherwise if I simply paste the code in then it should be pretty easy. The code in the link you sent has opening and closing PHP tags.
If creation involves additional code other than that contained in the link you sent then I need to know where to put it in the file, same question as I have for the function.php
4) Functions.php – please clarify how and where to insert the code in the functions.php file I create. Same question as above again – I dont know for certain how to insert correctly, also need clarification about closing php tag.
5) Custom CSS box – as long as all I do is paste the code in there it should be simple. But does the css box know automatically where to insert the code? I dont know this I have never done it.
6) If something goes wrong is the fix simply to delete or remove the files I added from the WP content -theme directory?
If you could clarify -exactly- some of these issues then this should be much easier and done effectively the first time (hopefully).
July 18, 2016 at 12:23 pm #95620PratikParticipant1) style.css – I entered the Theme name and Template accordingly, should I just leave everything else the same as the parent theme? Or remove it as it is optional?
You can remove it as parent theme style.css is loaded.2) Functions.php – the way the instructions are worded in the link you sent seem ambiguous to me. Please note that I have no experience at what we are attempting to do.
It says that the functions.php file begins with a PHP opening tag and ends with a closing tag. But your sample does not have the closing tag. This throws me off. I don’t know if I add the closing tag and then insert the enque function below the closing tag. But then a bunch more questions come up like does the enque function need a opening and closing tag? Where in the function.php file is it inserted exactly? Above or below? You assume I know these things.
In Theme editor in my wordpress admin I noticed that functions.php file does not have a PHP closing tag….this does not help explain things.
I found useful information at https://codex.wordpress.org/Child_Themes
Their function.php creation instructions make sense but they dont match up with yours.
For example: this step is not necessary in their instructions
<?php
/**
* Child Theme functions and definitions
*
*/They just say add the enque function. There is no mention or sample code concerning the above on their website. Their samples also include the opening and closing php tags.
You say in your instructions “that at this point your childs theme works just fine” how am I supposed to know this? I would not know if it was done correctly, if I used your sample it wouldn’t have a php closing tag – is this correct method?
You just need to add the code provided in your functions.php file after all the codes and just before the closing final?>
tag. You can remove the final closing tag as PHP will add it itself. If you are uncomfortable with this, please hire a professional for custom work because fatal errors can stop the site from working.3) archive.php – if this involves more then just creating a empty archive.php then I need to find instructions for it which I have not searched for yet. Otherwise if I simply paste the code in then it should be pretty easy. The code in the link you sent has opening and closing PHP tags.
Just create an empty archive.php file in the root of your theme folder and add all the codes provided. Do not add this code it in functions.php file.5) Custom CSS box – as long as all I do is paste the code in there it should be simple. But does the css box know automatically where to insert the code? I dont know this I have never done it.
Yes, just add it in the box and it will add it automatically6) If something goes wrong is the fix simply to delete or remove the files I added from the WP content -theme directory?
If something goes wrong, please remove the child theme folder and then you can change the theme back to parent theme. Please create a backup of all your WordPress installation and database before proceeding. If you have backup, you will be able to restore the original site in case anything happens.Let me know if you need more explanation, I will gladly explain things further.
Regards,
PratikJuly 18, 2016 at 1:25 pm #95626EdwinParticipantThanks. Here is what I intend to insert into the child theme folder:
1) style.css
/*
Theme Name: Adventurous Pro Child Theme
Template: adventurous-pro
*//* =Child Theme Custom CSS
————————————————————– */2) functions.php
<?php
/**
* Child Theme functions and definitions
*
*//**
* Loading Parent theme stylesheet
*
*/
add_action( ‘wp_enqueue_scripts’, ‘catchbox_child_enqueue_styles’ );
function catchbox_child_enqueue_styles() {
wp_enqueue_style( ‘catchbox-parent-style’, get_template_directory_uri() . ‘/style.css’ );
}3) archive.php just paste the referenced code in after above steps are implemented
4) functions.php – simply paste the referenced code at the bottom of the existing functions.php file after steps one and 2 implemented. If there is a php closing tag remove it first.
5) add referenced code into custom css box.
If something is not correct please clarify.
After I implement steps 1 and 2 how do I verify it was correctly done and I should proceed with the other steps?
July 18, 2016 at 2:58 pm #95628PratikParticipantOnce complete, you can verify by looking at the page link you provided.
July 18, 2016 at 3:55 pm #95636EdwinParticipantThank you
July 20, 2016 at 7:05 am #95790EdwinParticipantBy default it displays the name of the category above the description. Is it possible to remove that so I can use HTML for the category description heading?
https://www.mm2hglobaltravel.com/category/namibia-adventure-travel/
July 20, 2016 at 10:08 am #95799PratikParticipant@mmhgloba: You can use following code in Appearance=> Customize=> Theme Options=> Custom CSS box:
#content .page-header .page-title { display: none; }
July 29, 2016 at 7:09 am #96219EdwinParticipantHello, I adjusted the site color to dark and I want to category description to be the same color as the post text. It is using a bland default color. Thank you.
https://www.mm2hglobaltravel.com/category/namibia-adventure-travel/
July 29, 2016 at 8:03 am #96226EdwinParticipantalso, using the dark color scheme the search icon in the header has a dark shaded input pbc. Can we make it white? such as in the side bar…
July 29, 2016 at 9:56 am #96228PratikParticipantHi @mmhgloba:
To adjust category description color, please use following code:.page-header { color: #ffffff; }
For search on header, please use following code to change background:
#header-right .header-search-wrap input#s { background: #ffffff none repeat scroll 0 0; }
Let me know how it goes.
Regards,
PratikJuly 29, 2016 at 12:37 pm #96235EdwinParticipantLooks good – Thanks!
July 29, 2016 at 1:10 pm #96237EdwinParticipantIn the admin under categories, the lengthy category descriptions displays vertically in narrow columns. Is it possible to format this better? It is better if it only displays a short excerpt or only the title until you enter the individual description editor.
located here: /wp-admin/edit-tags.php?taxonomy=category
July 29, 2016 at 1:43 pm #96240PratikParticipant@mmhgloba: I am sorry but this cannot be done from a theme’s perspective. Theme can edit frontends with custom css but not admin end.
July 30, 2016 at 5:48 am #96273EdwinParticipantI am trying to adjust the color scheme of the promotion on the home page. I would like to change the button back ground color.
The color adjustment does not seem to work in admin, at least for the dark color website scheme. Can this be fixed?
If not, please send the code to adjust the button background color and also text in the button and promotion headline.
For color just white for the text and then burnt orange for the button back ground. I can then experiment with different color codes.
Thank you.
August 3, 2016 at 9:38 am #96521 -
AuthorPosts
- The topic ‘Double spaced category description’ is closed to new replies.