Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • This solved a similar problem of mine, my own custom themes refused to show up in the codestyling localization plugin when the functions.php were present (loading textdomain in header.php with load_theme_textdomain), when I renamed the functions.php file themes appeared in the list!

    By adding this fix, suddenly all themes where listed even when the functions.php were present.

    Weird!

    Thanks entr!

    Thread Starter keha

    (@keha76)

    Figured it out, there’s possibly a better way of doing this?

    $dp_theme_data = wp_get_theme();
    define( 'DP_THEME_URI', $dp_theme_data->get('ThemeURI') );
    Thread Starter keha

    (@keha76)

    The multisite install were NOT the problem, but my server setup was. To pass the request internally I had to add this line of code:

    curl_setopt( $ch, CURLOPT_PROXY, 'localhost:80' );

    Now it works like a charm! ??

    You can edit the theme files directly from your dashboard, but you need to know that your changes might be overwritten when updating the theme (if you usually do this from within the dashboard).

    You can find the admin editor here: Appearance -> Editor

    You need to find the style.css (probably already selected), add your custom CSS at the bottom and then save the file. Refresh your site to see the changes.

    It’s not entirely foolproof to do it this way, but it should work. Also note that your theme might not use the default widget-title class, it depends on how it is built. You need to check the source code to be entirely sure.

    The default CSS class for widget headers are “widget-title”, you could use this to add some custom CSS rules for your site.

    .widget-title {
        min-height: 20px; /* Alt. min-width. Use a value that fit your needs */
        max-height: 50px; /* Alt. min-height. Use a value that fit your needs */
        word-wrap: break-word; /* This is CSS3, wrap to the next line when necessary  */
    }

    Hope that helps!

    I looked at your site, I’m quite sure that the problem with the images is related to the theme itself. You need to change files within the theme, because the images get cropped when displayed in the portfolio section and another size is shown when you click the images.

    You could add a new image size in the function.php file, with the wanted dimensions, and then alter the file that’s being used for displaying the portfolio, making sure the newly added image size is used.

    You can read more about adding image sizes here: add_image_size.

    If you have selected categories for the pictures, you should add a category to the menu. I don’t really understand what you mean. Have you selected a static page as your home page or is it posts? Are you having problems with the picture size and/or rotation?

    This is how I do it, in short; Make a skeleton model of the site in simple HTML, no fancy stuff. Then slice up the PSD and make the pieces fit inside the skeleton model. Make corrections to the html and css to make it look as similar as the PSD as possible, when done, go on add the needed WP classes and style them. When the theme layout works and look as intended, go on and add custom functionality. When you think you’re done, test it, and then test it again and again.

    I guess you deleted the menu item in your custom menu? Just add it again to the menu, the content is still there.

    I used chrome, firefox and safari and I don’t see the spill, have you fixed it? It could be a browser related problem, tried using another browser?

    If you use a custom menu, then you can add a custom link and add it to the menu where you want the link to appear.

    Thread Starter keha

    (@keha76)

    Got it working! Excellent source of information. I’ve learned that you can not call some functions without using hooks.

    Thank you very much!

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