Ayman
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Word specified colorsIf you can give me the link to the page containing the word so I can have a look.
Forum: Themes and Templates
In reply to: Word specified colorsMaybe I wasn’t clear enough so I will try to explain you how the code is working.
$title = str_replace("Announcement","<h1 class=\"word_blue\">Announcement</h1>",$title);
The First Announcement is the target. that we are replacing it with:
<h1 class=\"word_blue\">Announcement</h1>
So that now our Second Announcement has a css class which is:
word_blue that we can use in our style.css like this:.word_blue{ color:blue; }
I hope I was more clear this time
Forum: Themes and Templates
In reply to: Word specified colorsThis:
/* “Announcement” should be exact as the targeted word and its case
* sensitive
*/Forum: Themes and Templates
In reply to: Word specified colorsThe code I gave you is working. did you paste the code in the path I told you? did you give attention to the comments in the code to customize it for your needs?
Forum: Themes and Templates
In reply to: Insert a photo above the sliderI’m sorry but support here is provided only for themes that is downloaded from www.remarpro.com
You are using a commercial/non free theme so I suggest you to ask for support from where you first got the theme.Anyway, I can tell you that creating a child theme is a good start for you. and I wouldn’t suggest modifying the original theme files as you will lose all the customization you make as soon as you update your theme.
Forum: Themes and Templates
In reply to: Word specified colorsThe functions.php file that is in the root folder of your child theme:
../wp-content/themes/child-theme/functions.phpForum: Themes and Templates
In reply to: Word specified colorsJust repeat the str_replace(); function. For Ex:
/* Function to add specific css class to a specific word in title */ function word_color($title) { /* "Announcement" should be exact as the targeted word and its case * sensitive */ // THE FIRST WORD $title = str_replace("Announcement","<h1 class=\"word_blue\">Announcement</h1>",$title); // THE SECOND WORD $title = str_replace("BOO","<h1 class=\"word_red\">BOO</h1>",$title); return $title; } add_filter('the_title', 'word_color'); /* Now every time that the title contain the "Announcement" word * the word will be replaced with the second "Announcement" that have * the css class */
Forum: Themes and Templates
In reply to: Change the logo url linkI tried to go to the URL you given above but your blog is not loading for me.
Forum: Hacks
In reply to: How to Change the Default Tab in Media ManageTry doing it using Adminimize and CSS
Forum: Hacks
In reply to: post per page and offset not workingForum: Themes and Templates
In reply to: Replacing Category with Featured ImageYou can replace the category title as text with an image:
1- Add this function to your child theme funtions.php.
This function will replace the title of the category you specify with the image you specify.
Don’t forget to replace “uncategorized” with the category you want.
function category_icon($title, $id) { if (in_category('uncategorized', $id)) { $title = '<img class="category_icon" src="*YOUR IMAGE URL HERE*" alt="" /> ' . $title; } return $title; } add_filter('the_title', 'category_icon');
2- You can do more now in css targeting the img class with something like this:
.category_icon{ background:#000; }
Forum: Themes and Templates
In reply to: [Magazine Basic] Post title link questionLink to your website will help.
Forum: Themes and Templates
In reply to: [Magazine Basic] Two quick questionsYou can do that, but:
1- you will need to create a child theme as its not suggested to modify the theme files because you will lose all the modifications you make when you update the theme.2- Provide a link to the target website so I can be of more help to you.
Forum: Themes and Templates
In reply to: Word specified colorsYou can do this by adding a filter to the_title. Its not suggested to modify the core files of the theme instead create a child theme and apply your modifications there.
1- Create a child theme and add this function to your child theme functions.php
/* Function to add specific css class to a specific word in title */ function word_color($title) { /* "Announcement" should be exact as the targeted word and its case * sensitive */ $title = str_replace("Announcement","<h1 class=\"word_blue\">Announcement</h1>",$title); return $title; } add_filter('the_title', 'word_color'); /* Now every time that the title contain the "Announcement" word * the word will be replaced with the second "Announcement" that have * the css class */
2- Than in your child theme style.css file add somthing like this:
.word_blue{ color:blue; }
Forum: Themes and Templates
In reply to: Replacing Category with Featured Image1) replace the green block category with a featured image (The category title with the little stripes that match the header), but not have the featured image in the post.
Not really clear what you mean.
2) move the blog title up so it’s next to the category block / image.
Create a child theme and apply to it this css:
.entry-cats{ float:left; }