Ayman
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twelve] JavaScript in WebPageplease do not suggest that people modify the default theme EVER.
@wpyogi, you are 100% right, It’s my mistake that I didn’t explain well that all modifications should be done to a child theme.
poor advice
Wasn’t done on purpose.
Forum: Themes and Templates
In reply to: theme – theme without blog postYou can use almost any theme to build what you need. the default theme would be good for that. WordPress gives you the ability to create as much as you want of pages and not just posts.
You can do that by going to: Pages -> Add NewAnd you can even create your custom menu so you can decide what to show in your menu bar. You can do that by going to: Appearance -> Menus
Than you can use one of the pages you created as the front page for the website by going to: Settings -> Reading
Forum: Themes and Templates
In reply to: [Twenty Twelve] JavaScript in WebPageThe easiest way would be to add the code into the page template “page.php”, but than wouldn’t be the right way to do it. If you dicide to do so than just copy and paste the below code into page.php
[moderated – do NOT modify the default theme]
Forum: Themes and Templates
In reply to: [Twenty Twelve] JavaScript in WebPageyou have to add it thou code. As the page template is a general template and applies to all generated pages.
so to add the script to a specific page you can:
1- Create a file and put your script in it.
3- Create a folder under your child theme root folder and call it “js”. so the bath is something../themes/my-child-theme/js/
4- Upload your script file to the “js” folder you created before.
2- Add this code to the functions.php file of your child theme:/* First we tell WordPress to check if its the page we need. and then to * load the script * change the "About" to the page title you want the script to be * loaded on. * replace 'my_script' with the file name of your script */ function my_custom_script() { if ( is_page( 'About' ) ) { wp_enqueue_script( 'my_script', get_template_directory_uri() . '/js/my_script.js'); } } add_action( 'wp_enqueue_scripts', 'my_custom_script' );
Like that we did tell WordPress to check if the page we need is the page that is being loaded and if yes, then to add our script to the header.
Forum: Themes and Templates
In reply to: [Twenty Twelve] JavaScript in WebPagesave your script to a file and then use
wp_enqueue_script()
to add your custom scripts.
learn more about wp_enqueue_script()To put it into a single page than you can put the wp_enqueue_script() into an if() statment.
you can change the
$args
variable if you want.Forum: Themes and Templates
In reply to: [Montezuma] change color of menu icons (hover)your website have no any blue color on menu hover.
Forum: Themes and Templates
In reply to: [Mantra] After update homepage text and text colour changedI alter the text and size/colour through the Mantra settings
If you still can do this than try re-saving your settings again and then clear your browser cache.
If not than please provide a link to your website so I can help you doing it thou css.
To center your text in the footer you can add this code to your child theme css
#colophon td{ text-align:center; }
Where did the archive come from? How do I remove this
Check the template file in your child theme as its there and you can just delete it without worries
Are there kooky squirrels playing around behind the scenes here????
I like it.. HAHAHA ??
Forum: Themes and Templates
In reply to: [Mantra] After update homepage text and text colour changedYou have to change the relevant CSS to what you need.
Forum: Themes and Templates
In reply to: [corp] Can't get rid of Corpo favicon.icoTry clearing your browser cache.
Forum: Themes and Templates
In reply to: [Pinboard] Content Not FoundAre you using a custom template? Did you check your settings under Settings -> Reading?
Forum: Themes and Templates
In reply to: find or set up URL for new blog entriesYou are welcome. Some times we miss the solution thinking that is something much more complected, while is just a couple of click ??
Forum: Themes and Templates
In reply to: [discover] resolution of slider images@brigittewieles, Happy to help.
@amanicorpsa, Please start your own topic.
Forum: Themes and Templates
In reply to: find or set up URL for new blog entriesOk so to create a page that shows your posts you have to create a new page lets say you name it blog. Than go to Settings -> Reading and select that page for “posts page” option and than WordPress should start loading your posts there.
For the static home page you can do the same creating a new page and name it home, Add all the content you want to show add it in the text editor and than go to Settings -> Reading and select it as “Front Page”
Like that you have a static landing page and a page that can be added in your website menu under this link “https://www.minimedi.de/blog”
I hope I got what you need right…Please feel free to ask if my answer didn’t solve your issue.