Forum Replies Created

Viewing 15 replies - 76 through 90 (of 215 total)
  • Theme Author Tim Nicholson

    (@timnicholson)

    aharmer, the next version of the theme will remove these navigation links for normal pages. It will only display them if the parent page uses the special page template of “Page with Subpages”. That template is designed to be used for logical groupings. So you should be able to upgrade your theme when v1.6 comes out and not have to worry about duplicating your edits above.

    Theme Author Tim Nicholson

    (@timnicholson)

    I believe you are talking about the colored background with the page title in it. The css class for that is ‘content-header’. I have a min-height of 170px on it to add “whitespace”. You can remove that restriction or set it to a fixed height with one line of CSS. You’ll have to have a plugin like Jetpack that let’s you add custom CSS to your site. Or you could create a child theme and directly edit the CSS.

    This will reduce the height a bit:

    header.content-header {
    	min-height: 0;
    }

    Theme Author Tim Nicholson

    (@timnicholson)

    It looks like you changed themes, so I can’t see what’s going on. What widget are you talking about that doesn’t work?

    Theme Author Tim Nicholson

    (@timnicholson)

    In the page editor there is a separate box with “allow comments” in it. Just uncheck that box.

    Theme Author Tim Nicholson

    (@timnicholson)

    Hi, the Pratt theme doesn’t set the home page to anything by default. If you assign a static page in Settings -> Reading then it will use that as the front page. You also have to specify a second page (doesn’t need content, just title and URL) as the blog page. You definitely do have to add both a home page and a blog page. That’s how WordPress designed it to work.

    Thanks for posting a link to your site and the screenshot of your menu. You must have created that “Home” menu item that says “custom”. If you click on Pages, then View All, you’ll see the “regular” Home menu item that isn’t custom.

    You’re Market Commentary page is blank, so I can’t tell what you mean to put there. But if its a regular WordPress Page, then it won’t display on your home page also. Unless you intend for that to be assigned as your “static” home page. Or if that is going to be assigned as your Blog page.

    Can you share with me more about what you are trying to do? I think perhaps you want a home page that has some text and a few recent blog posts. Then your Market Commentary page is really your full blog with all your posts. This theme provides a page template you can assign to your home page called “Page – Full Width with Recent Posts” that will do just that.

    To see an example, look at my home page.

    Theme Author Tim Nicholson

    (@timnicholson)

    The theme does have a Page Top widget area and you could add a custom menu widget there. If you have a large featured image on any pages, it will display below that, though. You’d also have to style the custom menu with CSS to make it horizontal, remove the bullets, etc.

    I’ve considered styling some widgets in the Page Top and Page Bottom area, but wasn’t sure if most people would benefit from that. Those widget areas are designed to be full-width for adding call-to-action sections.

    What would probably look better is if you added a simple menu to the very top of the site. That’s a pretty common layout. You’d still have to style the menu, though. Or you could assign it the same class that the footer menu uses, which is “footer-nav-menu”. You can also add the class “pull-right”. That would probably look pretty good.

    There are a couple of ways to do it on the PHP side, but this is the easiest. You can add a call to the custom menu in the header.php file. I’d do it right after the opening <header> tag. That file already has the code for the primary nav menu so you can do something very similar. Like this:

    <?php wp_nav_menu(
    	array(  'menu' => 'tertiary', //name of menu you want
    	'container_class' => 'tertiary-menu', //<nav> or <div> class
    	'menu_class' => 'footer-nav-menu pull-right' //<ul> class
    ) ?>

    You might want to consider creating a child theme, though, so your changes are preserved when you upgrade the Flat Bootstrap theme. A sample child theme is provided in the flat-bootstrap-child directory. Copy that directory up to the /themes folder, then copy in the parent theme’s header.php file and edit that.

    Theme Author Tim Nicholson

    (@timnicholson)

    I’m not sure what you are asking here. The site title is in an h1 tag with a class of site-title. The description is separate within an h2 tag with a call of “

    Here is what the theme outputs:

    <div id="site-branding" class="site-branding">
    <div class="container">
    <h1 class="site-title"><a href="http://xtremelysocial.com/" rel="home">XtremelySocial</a></h1>
    <h2 class="site-description">Cool WordPress Themes and Facebook Apps</h2>
    </div>
    </div><!-- .site-branding -->

    Thread Starter Tim Nicholson

    (@timnicholson)

    AFAICT, there don’t seem to be any functions related to this. It looks like widgets are added only through the Admin interface via the widgets.php file. This file uses ajax calls to post (and get and delete) to add widgets to widget areas.

    I think I’ve figured out how to create a nonce for security purposes and then I could use wp_remote_post() to trigger the add. However, there are several fields that I wouldn’t begin to know how to fill. See the “???” below.

    $_POST[$nonce] = wp_nonce_field( 'save-sidebar-widgets', '_wpnonce_widgets', $referrer = false, $echo = false );
    $_POST['widget-id'] = 999;
    $_POST['multi_number'] = ???; (optional)
    $_POST['sidebar'] = 'sidebar-4';
    $_POST[$sidebar_id . '_position'] = null; (optional)
    $_POST['id_base'] = ???;

    I’m just not sure how to work through the remaining details. I’m also not sure if this is something that the WordPress.org theme review team would frown upon.

    Do general theming questions get much attention here? It seems like most of the activity is threads for support of individual themes. Is there a better place for us theme developers to discuss topics like this?

    Theme Author Tim Nicholson

    (@timnicholson)

    As to the fonts and margins in the editor, what the theme is supposed to do is load the “front-end” CSS (bootstrap.css, theme-base.css, theme-flat.css) when the editor is being used so that it attempts to present the page like how it will look on the “front end”. However, there may be some differences but the intent is for fronts and other styling to look the same.

    I’m glad you asked this question because there are some issues with how I implemented this. Back in v1.3 I changed the way fonts are loaded to avoid using @import in CSS and instead load them via PHP. However, the PHP doesn’t get triggered when in Admin, so it wasn’t loading the fonts. In addition, I’m not sure all the other styles were being pulled in either.

    So I’ve updated the code and it will be in the next release, probably v1.6. If you want to fix it yourself in the current version, edit the functions.php to change this line:
    add_editor_style( '/css/editor-style.css' );

    to remove the beginning “/” like this:
    add_editor_style( 'css/editor-style.css' );

    Then replace out ALL the @imports in the editor-style.css file to be this instead:

    @import url( '../bootstrap/css/bootstrap.min.css' );
    @import url( '//fonts.googleapis.com/css?family=Lato:300,400,700');
    @import url( '//fonts.googleapis.com/css?family=Raleway:400,300,700');
    @import url( '../font-awesome/css/font-awesome.min.css');
    @import url( 'theme-base.css' );
    @import url( 'theme-flat.css' );
    @import url( '../style.css' );

    What was done here was to add the @imports for the header and body fonts as well as font-awesome (icons).

    Theme Author Tim Nicholson

    (@timnicholson)

    To change the background color in the editor, you can add this line of code to the editor-style.css file in /css folder. Add it after all the @imports:
    body { background-color: white; }

    Thread Starter Tim Nicholson

    (@timnicholson)

    Hi, Jeremy. I wasn’t aware that wp_login_form lets you hook into different places. That would be an elegant solution, indeed.

    The plugin I’m using for Facebook login is Sociabl.es. Its hook is just basic and it uses no javascript or CSS for positioning:
    add_action( 'login_form', 'fb_wp_login_form');

    You can see my site login here. I’ve styled the Facebook button to look just like the WordPress.com button, but the form looks bad due to the inconsistent button placement.

    I see in the core general-template.php where there are filters for login_form_top, login_form_bottom, and login_form_middle, but I don’t see a way to pass args to the main login_form filter to get it to output at the bottom. And if I filter on login_form_bottom instead of login_form, nothing gets output at all which is strange. The plugin is written to just echo out its HTML. It looks like the logon_form_bottom filter needs the HTML contatenated to the default output and returned rather than directly echo’d.

    Thread Starter Tim Nicholson

    (@timnicholson)

    Thanks, Jeremy. Without any javascript or CSS, the output of the wp_login_form filter goes below the User ID and Password fields and above the “remember me” and default login button. I don’t particularly care where it goes and one can argue that where Jetpack places it is better, but I’m looking for consistency between WordPress Core and Jetpack.

    Theme Author Tim Nicholson

    (@timnicholson)

    I’d like to discuss the responsive header image situation again. Can someone please post a link to their site so I can see the header image and how the cropping looks bad? I just can’t think of how this would work if it were responsive and not have the site title and tagline bleed over the image and look terrible on smartphones.

    This CSS code will make the header responsive, if you want to try it. If there is some use-case for this that I’m not thinking of, please let me know.

    .custom-header-image {
    background-position: top;
    background-size: 100%;
    background-repeat:no-repeat;
    }

    Theme Author Tim Nicholson

    (@timnicholson)

    Hi, hartmutnz. I’m sorry you had problems with your hosting provider over the plugin. I really don’t see why they would have an issue with it since its just a simple PHP class that gets included just like any other included PHP file in the theme.

    I haven’t removed the plugin from the theme because so many of the recommended plugins really are necessary to get the theme looking the way its intended. I’ve reached out to the plugin developer about this, though.

    Theme Author Tim Nicholson

    (@timnicholson)

    I’m sorry I missed your reply here. With all the fancy categorizing of email that Gmail now does, this didn’t appear in my inbox. I see you’ve moved on to a different theme, but wanted to respond here to you and/or if others are following the thread.

    The best way to determine how to change link colors is to use “developer” mode in your browser. I use Safari, but IE and Chrome, etc. all have a mode like that. It likes you right click on any element on a web page and select “Inspect element”. It then shows you the HTML and CSS for that element and even lets you alter them dynamically in the browser. Once you work out what changes you want to make, you can put that edited CSS into the themes style.css or better yet use the Jetpack Custom CSS plugin to add it there and not worry about your changes getting lost when the theme gets updated.

    To change the hover color of the footer nav menu, you add CSS like this:

    .footer-nav-menu a:not(.btn) { color: #f2f2f2; }
    .footer-nav-menu a:hover:not(.btn), .footer-nav-menu a:focus:not(.btn) { color: #ffffff; }

    To change the hover color of the top navbar toggle, you add CSS like this:
    #menuToggle:hover { color: black; }

    The call to action widget is just a sample when you first install the theme. You could edit the sidebar-pagebottom.php file, but I wouldn’t do that. Once you add any widget to the Page Bottom widget area, the sample is no longer displayed. So you’d just add a text widget with the text and button code that you want.

Viewing 15 replies - 76 through 90 (of 215 total)