• wp-beginner

    (@wordpress-beginner)


    I created an own template for WordPress 3.4.1 and got the problem that WordPress automatically generates titles for every single page I create, but I don’t want the page-titles as headline.

    My template bases on the “Modern Theme” for Magento eCommerce. After adapting for WordPress it consists of footer, header and index.php and a style.css without attributes for page-titles.

    Because, the headline has another styling it must be an automatic function from WordPress when I paste a title in the appropriated field of the page editor(?)

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter wp-beginner

    (@wordpress-beginner)

    As I mentioned before it was originally a theme for Magento with lots of shopping boxes and options. (Which you can edit via xml-files – Magento is quite complex.) So there is no coding for the wp-title if you mean this. I didn’t change the CSS of Magento it wasn’t necessary for using it in WordPress.

    Thread Starter wp-beginner

    (@wordpress-beginner)

    Yes, “selector”. I didn’t find the word. ??
    Showing the website? What can I do, it’s only a localhost…
    Wait a moment and I try to reduce the coding concerning the main content.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    On viewing the web page, right click (assuming you’re on Windows) and select ‘View source’. The new pop-up window provides the HTML. Copy and paste it all into https://pastebin.com and send us the link.

    Some instructions on how to use Pastebin
    https://codex.www.ads-software.com/Forum_Welcome#Posting_Code

    Thread Starter wp-beginner

    (@wordpress-beginner)

    So here is the header.php:

    <body>
    <div class="wrapper">
    	<div class="page">
            <div class="header-container">
                <div class="header"><!--HEADER-->
                    <h1 class="logo"><!--LOGO-->
                		<a href="******" title="******" class="******">
                		<strong>******</strong>
                		<img src="<?php bloginfo('template_directory'); ?>/******" alt="******" /></a>
                	</h1>
                    <div class="nav-container"><!--NAVIGATION-->
    					<ul id="nav">
                        	<li class="level0 nav-1 first level-top parent">
                            	<a href="******" class="level-top">
                            	<span>******</span></a>
                            </li>
                            <li class="level0 nav-2 level-top parent">
                            	<a href="******" class="level-top">
                            	<span>******</span></a>
                            </li>
                            <li class="level0 nav-3 level-top">
                            	<a href="******" class="level-top">
                            	<span>******</span></a>
                            </li>
                            <li class="level0 nav-4 last level-top">
                            	<a href="******" class="level-top">
                            	<span>******</span></a>
                            </li>
                            <li class="level0 nav-5 last level-top">
                            	<a href="******" class="level-top">
                            	<span>******</span></a>
                            </li>
                            <li class="level0 nav-6 last level-top">
                            	<a href="******" class="level-top">
                            	<span>******</span></a>
                            </li>
                    	</ul>
                    </div>
    			</div>
                <div class="quick-access"><!--QUICK-ACCESS-->
    				<p class="welcome-msg">Herzlich willkommen in unserem Online-Shop!</p>
    				<ul class="links">
    					<li class="first">
                        	<a href="https://localhost.de/magento/index.php/customer/account/" title="Mein Benutzerkonto">Mein Benutzerkonto</a>
                        </li>
    					<li>
                        	<a href="https://localhost.de/magento/index.php/checkout/cart/" title="Mein Warenkorb" class="top-link-cart">Mein Warenkorb</a>
                        </li>
    					<li class="last">
                        	<a href="https://localhost.de/magento/index.php/customer/account/login/" title="Anmelden">Anmelden</a>
                        </li>
    				</ul>
    			</div>
                <div class="top-bar"><!--TOP-BAR-->
                	<form id="search_mini_form" action="https://localhost.de/magento/index.php/catalogsearch/result/" method="get">
    					<div class="form-search">
    						<label for="search">Suche</label>
    						<input id="search" type="text" name="q" value="" class="input-text" maxlength="128"/>
    						<button type="submit" title="Los" class="button"><span><span>Los</span></span></button>
    						<div id="search_autocomplete" class="search-autocomplete">
    						</div>
    						<script type="text/javascript">
    							//<![CDATA[
    							var searchForm = new Varien.searchForm('search_mini_form', 'search', '');
    							searchForm.initAutocomplete('https://localhost.de/magento/index.php/catalogsearch/ajax/suggest/', 'search_autocomplete');
    							//]]>
    						</script>
    					</div>
                	</form>
    			</div>
    		</div>

    Here is the index.php:

    <?php get_header(); ?>
    	<div class="main-container col1-layout">
    		<div class="main">
    			<div class="col-main">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       <h2><?php the_title(); ?></h2>
       <div class="entry">
          <?php the_content(); ?>
       </div>
    <?php endwhile; endif; ?>
    			</div>
    		</div>
    	</div>
    <?php get_footer(); ?>

    The footer.php:
    `<div class=”footer”>
    <div class=”f-right”>
    <img src=”<?php bloginfo(‘template_directory’); ?>*****” class=”*****” alt=”*****”/>
    </div>
    <div class=”f-left”>

    <ul>
    </ul>
    <ul>
    <li class=”last”><a href=”*****”>*****</a>

    <li><a href=”*****”>*****</a></li>
    <li><a href=”*****”>*****</a></li>
    <li><a href=”*****”>*****</a></li>
    <li><a href=”*****”>*****</a></li>
    <li><a href=”*****”>*****</a></li>
    <li><a href=”*****”>*****</a></li>
    </ul>
    <ul class=”links”>
    <li class=”first last”>
    <a title=”*****” href=”*****”>Kontakt</a>

    </div>
    </div>
    </div>
    </div>
    </div>
    </body>
    </html>`

    And here the style.css. I tried to compile the important ones but there is still a lot of redundant coding:

    [CSS moderated. Please use a pastebin.]

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you Pastebin.com the HTML of the page and state which title you want ‘removed’ ?

    Thread Starter wp-beginner

    (@wordpress-beginner)

    I never did that before, give me some time, please.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Some instructions on how to use Pastebin
    https://codex.www.ads-software.com/Forum_Welcome#Posting_Code

    On viewing the web page, right click (assuming you’re on Windows) and select ‘View source’. The new pop-up window provides the HTML. Copy and paste it all into https://pastebin.com and send us the link.

    Thread Starter wp-beginner

    (@wordpress-beginner)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try using this CSS

    .main h2 {
     text-indent: -9999px;
    }

    Thread Starter wp-beginner

    (@wordpress-beginner)

    Thanks, it works, but there is still an offset after caoding this.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Removing Page-Title?’ is closed to new replies.