Viewing 20 posts - 1 through 20 (of 22 total)
  • Author
    Posts
  • #95567
    Edwin
    Participant

    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.

    #95575
    Edwin
    Participant

    In 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

    #95578
    Pratik
    Keymaster

    Can you post in with reference to the site url and url of the specific archive pages. I need to check them.

    #95579
    Edwin
    Participant
    #95580
    Pratik
    Keymaster

    @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,
    Pratik

    #95617
    Edwin
    Participant

    I 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).

    #95620
    Pratik
    Keymaster

    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?
    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 automatically

    6) 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,
    Pratik

    #95626
    Edwin
    Participant

    Thanks. 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?

    #95628
    Pratik
    Keymaster

    Once complete, you can verify by looking at the page link you provided.

    #95636
    Edwin
    Participant

    Thank you

    #95790
    Edwin
    Participant

    By 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/

    #95799
    Pratik
    Keymaster

    @mmhgloba: You can use following code in Appearance=> Customize=> Theme Options=> Custom CSS box:

    
    #content .page-header .page-title {
        display: none;
    }
    
    #96219
    Edwin
    Participant

    Hello, 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/

    #96226
    Edwin
    Participant

    also, 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…

    #96228
    Pratik
    Keymaster

    Hi @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,
    Pratik

    #96235
    Edwin
    Participant

    Looks good – Thanks!

    #96237
    Edwin
    Participant

    In 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

    #96240
    Pratik
    Keymaster

    @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.

    #96273
    Edwin
    Participant

    I 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.

    #96521
    Pratik
    Keymaster

    @edwin:
    Since you are using Adventurous Pro Theme, You can adjust the colors for promotion headline via Appearance=> Customize=> Colors=> Promotion Color Options

    Let me know if this does not work.

    Regards,
    Pratik

Viewing 20 posts - 1 through 20 (of 22 total)
  • The topic ‘Double spaced category description’ is closed to new replies.