• Resolved AlanMatuka

    (@alanmatuka)


    Hi,

    since I’m very new to WP have to ask some basic questions…

    I like the simplicity of Editor and would like to turn it into something like this :
    https://www.erikalmas.com

    First problem I came across is comment widget, appearing on every page except homepage – is it possible to remove comment box without meddling with the code ?

    Also, is it possible to remove the actual name of the page from the body ( so that it doesn’t appear twice on the same screen – in the menu and on the body of the current page ) ?

    thanks,
    Alan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Alan,

    To disable comments on your posts and pages, you need to turn off comments for those pages. Edit the page or post, and turn them off in the Discussion box. If you don’t see a box called Discussion on the page editing screen, you can turn it on under the Screen Options tab.

    To remove the page title from the current page, you’ll need to make customizations to the theme. If you’re comfortable doing this, I can get you started in the right direction. It’s best to make customizations like this in a child theme so that you don’t lose your changes when you install Editor updates in the future.

    Once you’ve created and activated your child theme, copy the content-page.php file from Editor into your child theme folder. Then edit the new content-page.php file and look for the following:

    <header class="entry-header">
        <h1 class="entry-title"><?php the_title(); ?></h1>
    </header><!-- .entry-header -->

    Replace it with this:

    <?php if( ! is_singular() ) { ?>
    <header class="entry-header">
        <h1 class="entry-title"><?php the_title(); ?></h1>
    </header><!-- .entry-header -->
    <?php } ?>

    The above works for pages. If you need to do posts this way, copy content.php into your child theme folder, edit it, and look for this:

    <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>

    Replace it with this:

    <?php if( ! is_singular() ) { ?>
        <h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    <?php } ?>

    Thread Starter AlanMatuka

    (@alanmatuka)

    Hi mindctrl,

    thanks fot the answer ??
    I did try to turn of comments, maybe I did something wrong in the process.
    It seems I’ll have to learn basics of php, but it’s a step in the right direction.

    Thanks, will let you know about the progress…

    Thread Starter AlanMatuka

    (@alanmatuka)

    Hi,

    I managed to turn off comment box, as well as create child theme and implement changes…

    Now have few other questions…
    I added some new pages to the menu, but some of them are subpages… Still, they all appear on the homepage menu.
    Is it possible to make them invisible, so that they show up just when their parent page is mouse hovered ?
    Also, is it possible to make changes so that font of the page changes to bold when link is mouse hovered ?

    It seems I’ll have to get hold of some good css and php manuals…

    Thanks ??

    Theme Author ArrayHQ

    (@okaythemes)

    Hi Alan,

    Right now the sub menu items will always show under the parent page. It’s possible to hide those by default, but you’d need to work out some CSS and javascript to make that happen.

    To make menu items bold when hovering, you might try to add some CSS like this:

    .main-navigation a:hover { font-weight: bold; }

    Thread Starter AlanMatuka

    (@alanmatuka)

    thanks…
    I found a post about making subpages invisible, and it seems it’s not the option…
    OK, it will be listed as they are now…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘several changes to the theme’ is closed to new replies.