David Beja
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Theme: Hatch – How to align logo, in place of title, to middle?Try adding this to your css:
#branding { width: 100%; } #site-title { text-align: center; }
Forum: Themes and Templates
In reply to: How to remove page name in twentytwelve themeYou could duplicate in your theme folder the file content-page.php, but make a small change where the title is written.
You could change in the beginning of the file from this:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?></h1> </header>
to this:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if(!is_front_page()): ?> <header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?></h1> </header> <?php endif; ?>
This template is what is used to generate the page, and you are showing the header just if the current page is not the frontpage.
Forum: Themes and Templates
In reply to: [Mantra] Moving one button to align right.Can you give a link?
Forum: Developing with WordPress
In reply to: admin loginYou can change your url settings via your theme.
FTP to your site and add these lines, inside the functions.php of your theme (this file is inside the directory of the theme you have activated), immediately after the initial <?php line:
update_option('siteurl','https://yourcorrecturl.net'); update_option('home','https://yourcorrecturl.net');
Change yourcorrecturl.net with the right url.
Then try to login again in your admin page. Refresh a couple of times until it works.If everything wents ok, don’t forget to remove these lines from functions.php.
Forum: Themes and Templates
In reply to: Centre Page Titles CSS – twenty elevenok ?? didn’t read the last post.
Forum: Themes and Templates
In reply to: Centre Page Titles CSS – twenty elevenYes, you can, but note that a child theme’s stylesheet replaces the stylesheet of the parent completely.
So if you were not using a child theme before, don’t forget to import the twenty eleven style.css if you want to keep some css of the parent.Forum: Developing with WordPress
In reply to: admin logindo you have access to the database?
Forum: Themes and Templates
In reply to: Centre Page Titles CSS – twenty elevenIf it’s just for Page titles, I think you can just put in the css:
.page .entry-title { text-align: center; }
Forum: Themes and Templates
In reply to: Analytics code in head not workingyes, ThorHammer, it’s generally the best place to put, but analytics code is asynchronous so there’s no performance issues if you put in the head, and in this way it increases the chances that the user is tracked before leaving the page.
Forum: Themes and Templates
In reply to: Analytics code in head not workinggreat ??
anyway, according to google you should put the code in the end of the head, just before the </head> so you have the best performance across all browsers with the other scripts.
Forum: Themes and Templates
In reply to: Analytics code in head not workingNo, that’s the right place.
Are you sure you add the code to the right theme folder?I don’t see any analytics code inside the source code of your website in the head section, only in the bottom near the </body>.
Forum: Themes and Templates
In reply to: Analytics code in head not workingDid you put the analytics code in the configuration page of your wootheme?
Or directly in the code?Now the analytics code is at the bottom of the page before the </body> and not before the </head>.