Tekamolo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Blank PageThe thing is I do not know how to define it so that it is a blank page. I am very newbie at php and html.
I would like the page to be placed on the same domain as the blog itself.
Suggestions are welcome!
Forum: Fixing WordPress
In reply to: Transform h2 tags to h3 tags on the index pageNow it all works to my satisfaction.
Thank you very much, now I finally have an index page with the h1 tags π
Forum: Fixing WordPress
In reply to: Transform h2 tags to h3 tags on the index pageWhere exactly do I add the conditional tags inside the loop?
Forum: Fixing WordPress
In reply to: Transform h2 tags to h3 tags on the index pageNow it works like a charm! π
But I’ve got one final demand: I have a sticky post at the top of the index page, which is always at the top even after adding a new article. The theme I’m using doesn’t allow me to have a h1 tag on the index page. Would it be possible to change the title of the sticky post on the index page (which is h2 at the moment), so that it were h1, with all the other header tags remaining as they are now?
Forum: Fixing WordPress
In reply to: Transform h2 tags to h3 tags on the index pageIt worked, except it also changed the h3 tags on the index page to h4, which was not what I wanted.
Forum: Fixing WordPress
In reply to: Transform h2 tags to h3 tags on the index pagetry changing this: if(!is_home()) { to if(is_home()) {
Man you rock! Now, without the exclamation mark, it works exactly how I wanted. Thank you!
Would it be possible to also change the within-content h3 to h4 on the index?
Forum: Fixing WordPress
In reply to: Transform h2 tags to h3 tags on the index pageNow with the extra bracket it works (post titles are h2 on the index page and h1 on the post pages). Thank you for that.
Now if there is any way to transform the h2 tags from within the content of the posts to h3 on the index page (while remaining h2 on the post pages), I would be even more grateful π
Forum: Fixing WordPress
In reply to: Transform h2 tags to h3 tags on the index pageI figured how to fix the problem I describe in my last post. There were two functions.php files, one was in a sub-folder of the theme directory, and when I uploaded the backed up functions.php, I overwrote the wrong file. Fortunately, before that I also backed the file I was overwriting, and now it’s all solved out :).
I use theme Imagination. It is literally written in the functions.php of the theme that any change made to the file will make the theme useless (“**** Changing the content of this file will render this theme useless. ****”).
So I think the missing bracket isn’t the case here, since it seems like I can’t change the file anyhow.
The original problem with header tags still persists.
Forum: Fixing WordPress
In reply to: Transform h2 tags to h3 tags on the index pageI made the change to the functions.php, but it ruined my site. I couldn’t login to WordPress, nor could I view my website. However, I backed up the functions.php before making the change, and via Filezilla uploaded it back to the root directory. This made logging into my WP account possible. Also, I can now view my site, but my theme settings are gone.
The day before, I backed up my WP database. Today, I uploaded it via phpMyAdmin. But that didn’t change a thing, so when I’m logged in in my site’s WP, I still get error messages at the top and at the bottom. The theme settings are lost, as I already said.
Is there any way I can restore the site to how it looked before making the change to the functions.php?
Forum: Fixing WordPress
In reply to: Transform h2 tags to h3 tags on the index pageAnyone?
Forum: Fixing WordPress
In reply to: Transform h2 tags to h3 tags on the index pageThis is a part of the code from my index.php:
get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class(‘pngfix clearfix curved’) ?> id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2><div class=”entry”>
<?php the_content(‘Continue Reading..’); ?>
</div>I’m very noobish at php and don’t undestand a single element of the code. But I suppose, the code above somehow makes the titles of the posts h2 tags, but only for the index page. All I want is change the h2 from within the content of the posts to h3, again, only for the index page.
Thanks.