• kissme1

    (@kissme1)


    I want to enclose the categories section of the post in a container like the one in the attached picture below

    View post on imgur.com

    The problem is that the code for that is too complex to edit(I am a beginner), here is the code.

    <?php echo apply_atomic_shortcode( ‘entry_meta’, ‘<div class=”entry-meta”>’ . __( ‘[entry-terms taxonomy=”category” before=”Posted in “] [entry-comments-link before=” | “]’, ‘<font color=darkred>retro-fitted</font>’ ) . ‘</div>’ ); ?>

    And here is the css for entry.meta

    .entry-meta {
    clear: both;
    margin: 0 0 20px 0;
    font: normal normal normal 12px/25px Arial, Verdana, sans-serif;
    color: #999;
    }

    I have added this code to Css to try to make this work.

    .entry-meta {
    margin:2em 0;
    }

    .entry-meta .entry-under {
    background:#fc0;
    padding:5px 10px;
    line-height:20px;
    color:#000;
    }

    .entry-links .entry-list {
    background:url(library/images/cat-list.png) no-repeat #000;
    padding:5px 10px 5px 20px;
    margin-left:-1em;
    }

    But I am unable to find where to replace or use this code in order to achieve my result.

    Sorry if it is still confusing.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The none code way is to use this plugin to change that “Posted in” to your own.

    Quick Localization
    http://wordpress.org/plugins/quick-localization/

    And use this plugin to hold your CSS changes

    My Custom CSS
    http://wordpress.org/plugins/my-custom-css/

    Never edit the theme files directly, keep theme files untouched. All modifications must be done via Child Theme or plugin only.

    Thread Starter kissme1

    (@kissme1)

    I AM using a child theme, I edit everything in the parent theme. Also I am using local wamp on my pc to make the modification and dont update them on my website until they are final so I can easily play around.

    Also I pasted my custom code in My Custom CSS but what am I supposed to do then? also I tried replacing posted in with some other text but it doesnt work, It just says Updated 1 Item and Skipped 1 Item in the notification bar.

    Again sorry for my noobness and I really hope you or someone else can help me in this.

    P.S. I also checked the style.css file and the My custom css plugin hasnt copied the text I pasted in it, is that supposed to happen?

    I AM using a child theme, I edit everything in the parent theme.

    Do you mean you directly edited parent theme files, and also use a child theme too ?

    Thread Starter kissme1

    (@kissme1)

    Yes I edit the parent theme files but the child one is active, I cant edit anything in the child theme.

    This child theme requires its parent theme, Retro-fitted.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Copy all of the PHP files, apart from the functions file, that you have modified (or want to modify) into your Child Theme directory.

    Then continue to modify those files within your Child Theme.

    Child themes
    http://codex.wordpress.org/Child_Themes

    Review the codex of child themes again, read carefully. Child theme is there so that you can make changes in child theme, and keep parent theme untouched.

    Edit: Thanks Andrew.

    Thread Starter kissme1

    (@kissme1)

    You mean function.php and the functions folder inside the library folder?

    Thread Starter kissme1

    (@kissme1)

    Well I tried copying all the files and removing only the functions.php file and the theme works, BUT none of the Css modifications work even though I have copied all the css files.

    When i remove all the files and only leave the style.css file in the child theme directory with the following text.

    @import url( ‘../retro-fitted/style.css’ );

    All the css modifications work. Very Strange

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Retro-Fitted Theme – Modification to Catagory Text’ is closed to new replies.