Modifying the Gallery Theme

Is there an option to eliminate the use of a logo? How do I remove the Gallery logo?

With the Network Theme, I would like to know if there is an option to removing the search capability that sits in the page. A nice theme, with a pimple in it's forehead.

  • BobSgt

    In the header file, there is the following code at the bottom that appears to be pulling the header data for the logo. Is this where the code should be included?
    If so,

    WOULD I REPLACE:
    <img src=<php header_image()
    WITH
    img {
    display: none;
    padding-right: 20px;

    <?php if ( get_header_image() ) : ?>
    <div id="top-header-graphic">
    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    </div>
    <?php endif; ?>
    <?php locate_template( array( '/library/components/discover-header.php' ), true ); ?>
    </div>
    <div id="container"><!-- start #container -->

  • BobSgt

    OK...Finally got around to trying this and I am getting the error message "This theme is broken. The parent theme is missing. Please install the "Network" parent theme."

    Also, is the import statement the correct syntax? will "../network/style.css" actually resolve the address of that file or is something need in place of the ..

    Thank You

    Following is the child theme stylesheet:

    Description: Network is a simple but straightforward theme designed to work with Multi-Site and/or BuddyPress to present a presence of community. Child Theme Update is to remove the Search from the header.

    Author: Tammie Lister (Designer) and David Bisset (Developer) - WPMU DEV - The WordPress Experts
    Author URI: https://premium.wpmudev.org/
    Template:Network
    WDP ID: 173

    Tags: buddypress, 2 columns, fixed width, threaded comments, theme options

    Uses BP-Default theme files and styling for BuddyPress components with some customisation for theme.
    Included in theme to allow for own child themes rather than being child of BP-Default

    The CSS, XHTML and design is released under GPL:
    http://www.opensource.org/licenses/gpl-license.php

    */
    @import url("../network/style.css");
    #discoveryBox .searchBox {
    display: none;
    float: left;
    padding: 10px 0 0 5px;
    width: 420px;
    }

    /* 1014-1357676678 */

  • BobSgt

    Just solved the problem.

    in my template statement, I used uppercase on the N in Network. Once I set to lower case the error message cleared.

    Once I tried to activate the child theme, a new error message:

    Fatal error: Cannot redeclare network_widgets_init() (previously declared in /home/content/a/f/t/afterben/html/wp-content/themes/network-child/functions.php:86) in /home/content/a/f/t/afterben/html/wp-content/themes/network/functions.php on line 122

    I suspect that is due to replication of the entire network theme elements in the network child directory?

  • BobSgt

    OK Went into my FTP manager and moved Network-functions.php to a tmp directory. That cleared the issue that was throwing the error statement. The search box is now gone, but the text box, the account owner name and the log-in/out button remains. I expect that these are all defined somewhere, possibly the same way the search button was defined.

    How do I get to see the underlying style sheet that defines this theme. With that I can struggle through and learn what I need to learn without having to post so many questions.

    Thanks,

  • BobSgt

    Kimberly,

    Just crafted a message for you and it seems to have disappeared when I clicked Like and gave you points. Damn...

    Here goes...AGAIN..

    I am trying to develop a rather complex multisite implementation. It will be a global content management system and repository for the surfing community. A lot to take on for my level of experience...but I am up for the challenge. I started this project in 2008 but had to set it aside due to the demands of my job. I am now retired and starting the project up again. By the time I am done I will have a great deal of knowledge (maybe even a new career), but in the meantime, I have a lot of questions, so I appreciate that you have followed up.

    I stopped playing with themes for a while, went back to reading. I have two levels of issue to deal with...presentation layer at the individual site and structure of how it all works at the multisite level and the individual site. I am trying to be confident of my overall structure and design before moving on too far.

    So I now have several questions in addition to my last question regarding CSS which still eludes me. The child theme was working for me just before I stopped playing. I have since deleted it and I am back to basic themes so I can learn other things. So my questions are:

    1. I still do not see where in the Stylesheet the source code is that I can learn from and modify in a child theme. I cannot find the code in Gallery that sets the logo; the code in Network that places the search bars and topics in the location where I would want to have a header; the code in Buddy Press magazine that pulls the ugly background. Is all of that considered proprietary and referenced in the code to be pulled in at execution time?

    2. I am developing a site that will have similar global location capabilities as the RCI (timeshare exchange) website.

    http://www.rci.com/RCI/prelogin/rdMain.do?country=US&language=en

    I suspect that I will need to develop the hierarchical referencing through categories (I am open to other suggestions). If I need to use categories, how deeply can categories be nested? Will the following work?

    Category Parent (continents, part of the primary multisite implementation)
    Child Category 1 Child of Parent (Country, part of the multisite implementation)
    Child Category 11 Child of Child Category 1 (Region or location, begin instances of sites under the main multisite implementation)

    3. I have read that categories are differentiated by number, category-1, category-11, etc. My categories are string based, Continent, Country, Region, location. To search by string, is it necessary to develop a translation table that resides in SQL eg 1 = North America, 2 = Europe, 21=Great Britain, 22=France etc. for reaching the data that is associated with categories.

    Thanks for getting back to me. Let me know if this is beyond the scope of your responsibilities.

  • Kimberly

    Have you ever used Firebug?

    getfirebug.com

    It will help you to pinpoint certain areas of code, Chrome has these developer tools built in already

    I guess I'm not sure what you're trying to achieve at this point, if you are looking for specific items the above will help

    I dug into the gallery theme files and see that there is a child theme included, you'd just need to move that child theme folder into the theme directory and activate it. It already has the code to reference the parent style sheet, so you'd just put in the items you want to change. the values in the child theme will override the duplicate values in the parent :slight_smile:

    Forgive me if I"m off base, just put me back on target and we'll keep moving :slight_smile:

  • BobSgt

    Hi Kimberly,

    I have not used Firebug. I will look at that. I am a mac user.

    I am moving along and now have the nested categories setup for prototyping. So my immediate needs get back to themes and theme management.

    I am still challenged by where the stylesheet code exists that presents the themes (network, gallery or any theme). Yes I can use a child theme, but that gives me a blank sheet of paper, not something that I can look at and learn from or in some cases modify. As an example, the Buddy Press magazine theme seems to handle menus better than network and gallery. But I hate the background...where is the background image defined?

    I am also now looking at how to set up a multisite portal theme that has different pages and different menu items based upon what page you are on.

    Example:
    Multisite Portal:
    Front Page is the global portal that should have a menu that allows the user to select one from several continents or global regions.
    Page below that should have a menu that allows the user to down select to a country.
    Page below that should have a menu that allows a user to down select to country or region of a country.
    From there it would locate the separate site which is developed and maintained by the user/subscriber.

    Subscriber Site:
    People, Places and History of the local surfing area

    Does that help you understand my challenges?

  • Kimberly

    Ok lemme see....

    Attaching a pic of the location of the child theme style sheet.

    ANd...

    Basic example of how a child theme stylesheet works with parent:

    /*
    Theme Name: Twentytwelve Child
    Description: Child theme for the twentytwelve theme
    Author: Your name here
    Template: twentytwelve
    */
    
    @import url(&quot;../twentytwelve/style.css&quot;);
    
    .site-title a {
        color: #009900;
    }

    Also attaching how you can find location of magazine theme background :slight_smile:

  • BobSgt

    OK..Thanks, so this confirms to me that the background image is identified as HTML tag <body id="custom"....> ip that is held on a server that is referenced in the css as background: URL of the location of the image. So if I like the structure of the theme, I can use some other image that is then referenced in the css.

    I still have structural challenges that I am making my way through. I downloaded a menu plug-in (Floating Menu by Lee Chestnut) that helped. BUt, solve one problem and move on to the next.

    Can we leave this open so I can touch base as needed?

  • Kimberly

    How about I remove the option to close or open altogether and we keep this running with the two of us :slight_smile:

    should you come across something else you can respond here or start a new ticket if it can't wait or is a larger than conversational issue (Patrick and Brian are more theme savvy than myself, so you might score a winner there!)

    But I have this ticked marked to go directly to my followup feed on any response, so i'll be watching for you!

    How does that sound?

  • BobSgt

    Kimberly,

    Just wanted to give you an update.... For Christmas, my son bought me a subscription for 3 months of Lynda.com (software training website). So a couple weeks ago I started to use it. They have (26) for WP, others for php, css, etc.

    I have listened through a couple of them by Morten Rand-Hendriksen. Morten is a very good instructor, logical and easy to follow. These courses have been extremely valuable and much less painful my previous method of beating my head against the wall

    Better than other on-line WP resources I have tried. If you ever get a chance, give it a try. You can get a free account to experience what they have. Referring people to their site would be very helpful to those like me who are struggling with a concept.

    I now have a multisite installed and am making headway. I will be in touch when I need assistance.

    Thanks,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.