Syahir Hakim

Keymaster

Forum Replies Created

  • Admin

    In reply to: How to handle 404 in Graphene?

    #26974
    Quote:
    (However, the nuclear bomb thing… well… I felt it rather violent and inappropriate.)

    Oh, don’t be offended. It’s one of the most popular way of explaining SOPA to the public during the massive online protests. It’s certainly not directed to you or anyone else.

    The easiest way to implement the 301 Redirect is by using the .htaccess file. See this page for guidance:

    http://www.isitebuild.com/301-redirect.htm

    Admin

    In reply to: Child theme broken

    #27029

    Somehow the PinkTheme style.css file is being loaded instead of the Graphene’s style.css file. Try removing the PinkTheme theme?

    Actually, WordPress tries to load the wp-content/themes/PinkTheme/style.css file, but couldn’t find it. So something somewhere must have caused WordPress to try to load up that file.

    Admin

    In reply to: How to handle 404 in Graphene?

    #26972

    @Tamas, the 404 respond code is there for a reason. It informs the clients (which includes your site’s visitors, search engines, and myriad of other clients) that whatever resource they’re requesting, it can’t be found. Based on this, different clients will respond in different ways.

    There was even a case previously (quite a long time ago) when Google actually penalised a site using the Graphene theme for not returning the proper 404 response when a content is not found (and obviously this has been fixed since then).

    Therefore, totally eliminating 404 messages in your website is highly not recommended, especially when you’re doing this just to correct a mistake in a single post. It’s like they say, why drop a nuclear bomb when only a precision strike is necessary?

    The proper and better way to handle your situation is to use 301 Redirect. In HTTP client-server model, the 301 response code means Moved Permanently.

    Respectable search engines will then most likely transfer the ranking from the old page (if any) to the new page, and phase out the old page from search results. If your visitors follow their bookmark of the old page, they’ll simply be redirected to the new page. Simple, and correct.

    Admin

    In reply to: Retaining content in preview/slider

    #26929

    Try adding <br> or <br /> instead.

    Admin

    In reply to: Translation Localization (Syahir ?)

    #26847
    Quote:
    Should I add the same function, but with a different name, to the secondary file (keeping the same text domain)?

    Nope. Instead, you should place the function in the plugin’s file that contains the plugin information header. I believe this is the file that has the same name as your plugin’s directory name.

    Or you can also include a separate file that contains that function into the plugin’s primary file. Point is, that function must be executed on every page load when the plugin is active (or where the translatable strings appear). How you achieve that is up to you (though there are certainly best practices, such as the ones I described above).

    Admin

    In reply to: Read more button

    #26709

    You can always use CSS to hide the button when it’s not needed. Each post has a unique id attribute, so you can apply the CSS to specific posts/pages.

    Admin

    In reply to: Translation Localization (Syahir ?)

    #26845

    With WordPress, you should be using a custom function to translate strings. WordPress uses gettext to translate strings, so you should too.

    See this Codex page for more info:

    http://codex.wordpress.org/I18n_for_WordPress_Developers

    Admin

    In reply to: Stretching the header logo to fit new width

    #26824

    If you change the theme’s width using the theme’s Column Width options, then you would need to re-upload your header image and it will take the new width.

    Admin

    In reply to: not compatible with explore 6,7

    #26716

    The theme works well in IE7 and above, though it may not look exactly the same as Ken mentioned.

    As for your site, all the other pages appear fine in IE9 except that registration page, so whatever is causing the issue must be in that page.

    Admin

    In reply to: Improved spacing for Graphene Slider

    #26816

    You can add this to your child theme’s functions.php file to modify the excerpt length for the slider:

    function graphene_custom_slider_excerpt_length(){
    graphene_set_excerpt_length( 35 );
    }
    add_action( 'graphene_before_slider', 'graphene_custom_slider_excerpt_length' );

Viewing 10 posts - 3,421 through 3,430 (of 6,030 total)