I'm really new in coding, especially in css. I already read some tutorials but I like to change a specific thing. For my Website I use Wordpress. I also edited a few things in my CSS which already worked. Now I can't find a answer for how I can replace the title with a custom picture.
Click here to watch a picture to understand what I mean.
Click here to acess my website.
I already tried some things, but it would be nice if someone can explain me how to do it.
You can edit header.php in the twenty seventeen to display only a picture.
This source code is on your wordpress server in wp-content/themes/twenty-seventeen/header.php: https://github.com/WordPress/twentyseventeen/blob/master/header.php
You'll want to replace line 31:
<?php get_template_part( 'components/header/header', 'image' ); ?>
With something like
<img src="banner.png" />
You'll have to adjust the location of banner.png to where you actually upload the image.
After you've got that working and it's basically what you want, you can wrap the image tag in a a tag so the banner links back to your home page, if you'd like.
I've searched throughout and can't find where to change the base thumbnail size on the Homepage (www.tomcpalead.com). It's set to 210 x 158. I change the Functions.php and nothing updates on the Homepage. Can't find the reference in style.css to edit it either.
Can someone help?
Thanks
The size of your thumbnails seems to be coming from here:
http://tomcpalead.com/?custom-css=1&csblog=1&cscache=6&csrev=4
I haven't seen CSS files named like that before though, so I'll defer to others who will have a better idea of where that's coming from. If there's any setting somewhere in your theme that looks like the following then that is what I would try editing:
.river .thumb img{width:16rem;height:9.75rem}
Just go to wordpress admin and follow this path :
Go to admin => Settings => Media
here, you will get the thumbnail size for all the images defined. You can change it as per your choice.
After modifying size, just check it by uploading a new image and set it a thumbnail image.
I have Gallery plugin installed.
I've uploaded my images and used snippet like this: [[Gallery? &album=1]].
Now I have thumbnails shown fine, but after clicking on image I'm sent to /index.php?id=4&galItem=2&galAlbum=1&galTag= address and nothing happens - this page is the same as the previous one.
Any ideas on what I am doing wrong?
You get the link to your page with id=4. In this page you have to get galItem, galAlbum and galTag and show corresponding image. I'm not sure you have handling this in your template.
Just try this:
[[Gallery? &album=1 &linkToImage=`1`]]
You will get the direct link to your image if you keep your thumbTpl chunk as in sample:
<a href="[[+linkToImage:if=`[[+linkToImage]]`:is=`1`:then=`[[+image_absolute]]`:else=`[[~[[*id]]?
&[[+imageGetParam]]=`[[+id]]`
&[[+albumRequestVar]]=`[[+album]]`
&[[+tagRequestVar]]=`[[+tag]]` ]]`]]">
Now you just get else part.
i just upgraded to wordpress 3.3 and built a really basic template for some reason the wordpress admin bar on the site is displaying really weird. on the backend (dashboard) it is fine though.
i have attached an image, but is there a better way to view my problem? or has anyone else had it?
http://www.keganquimby.com/dev/
it wont let me upload an image, so to see my screen shot: http://www.keganquimby.com/dev/wp-content/uploads/2011/12/Screen-Shot-2011-12-15-at-3.07.29-PM.png
I didn't know you could actually disable the admin bar for the front end of your site altogether, which is what I needed. Clicking on users then toggling the "Show Toolbar when viewing site" option off did it!
If you have already included wp_head(); & wp_footer();
Check function.php for show_admin_bar(FALSE); and change it to show_admin_bar(TRUE);
Have you made sure that your header.php contains the wp_head(); function call as last line of your head container and that you have wp_footer(); as the last line of your body container?
It's hard to diagnose the issue since your error probably lies server-side (PHP code).
Please could anyone help me with this problem? The wordpress admin bar is not displaying on the front-end (public visible pages) of my website. It shows when I'm logged in at the backend i.e Dashboard though. User settings are ok (set to show admin bar when viewing the site). I have tried deactivating (then, re-activating ) installed plugins, still no show.
Just a background note:
I recently transferred the site to my webhost (I was developing locally and everything worked and is still working). And I have a custom folder for wordpress. I was wondering if the problem has to do with this.
Please help I have searched everywhere but seems everyone is looking to hide the admin panel instead.
Thanks in advance
Check that your theme includes a call to the function wp_footer() at some point, usually at the very bottom of footer.php. That generates the code required for the admin bar to show.
add this to the end of your footer.php in your theme folder:
<?php wp_footer(); ?>
problem solved :-)
Most of the time the wp_footer() call is right where it should be so if you still can't see the admin bar then try the following:
log out of the backend
navigate to the front-end
clear your browser cache
log back in using the absolute url i.e. yourwebsite.co.uk/wp-admin
and then see if it comes up - worked for me.
Also make sure the "Show Toolbar when viewing site" box is checked in your user profile page or whatever you try ain't gonna work my friend!.
I know this is an old question, but another option - If you purchased (use) a pre-made theme make sure that theme does not remove the toolbar in its code.
Does it 'know' that you are logged in ? when in front end ? ie: meta widget shows 'logout' instead of login. if not Did you by any chance play around with the cookie paths?
I got myself confused because I was logged in at backend, but not front end. This was because I'd being playing with the cookie path and forgot to uncomment what I'd done.
First, double checked all of the other items mentioned here (wp_footer(), etc).
Three more things to check:
make sure header.php has <body <?php body_class(); ?>> not just <body>
try disabling plugins one by one if you're still having trouble. (For me, the Simplest Gallery 2.7 with WP 3.7.1 caused a conflict that made the admin bar disappear)
look for function remove_admin_bar() { return false; } in the theme's functions.php - change it to return true.
Just add in your template
<?php wp_footer(); ?> before </body> and <?php wp_head(); ?> before </head>
For me the issue was that I was using http://mydomain.com/wp in the WordPress address but http://www.mydomain.com for the site address. We had added the www to the WordPress address so that GoogleAnalytics would work and that's when the Admin Bar broke.
Adding www to the WordPress address fixed the issue.
To clarify after a lot of searching for a solution, similar to MattKnowles solution but more specific: Make sure that in settings > WordPress Address (URL) and settings > Site address (URL) that if one has www then the other also does and the other way round. Otherwise it seems while you are browsing the site it is a different domain to the admin area and the admin bar does not show.
Make sure site addresses are the same! I had one set at http://www.example.com and the other (WordPress) address set to http://example.com or visa versa.
I had them set this way because I though it was needed for the site to show up when you type the url without the www.
Now that both addresses are the same (with the www) my admin bar works, I stay logged in, I can comment, see preview or draft content, cross-site authenticate and logout, wow!
an entire year of wondering why WP just never worked right across over 30 websites!
Going to change addresses to the same "www" address in the rest of my 30 sites now and enjoy error-free WordPress for the first time ever...it's a great day!
Remember to remove any admin bar code you may have added in your theme's function.php file or in your styles.CSS
Thanks to all who help us here!
wp_footer() ,
add this function to footer.php
My #wpadminbar had a z-index: 99999;
In an act of myopia I made a sticky header that was in conflict with the Admin bar's stickiness. I had a z-index greater than the admin, making it rest behind the visible div.
I made my own sticky less powerful.
Here's a solution that I found.
Need to have <? wp_head()?> and <? wp_footer(); ?>.
More info: http://blog.frontendfactory.com/how-to-add-wordpress-toolbar-to-your-custom-theme/
Still working on this, but there is a conflict with Woocommerce. if deactivated, toolbar is there. Active, no toolbar.
More info here.
I had a sitiation when the admin dashboard was opened in one Chrome tab, but I could not make front-end part opened in the other tab to enter the admin state and show the admin bar.
The front-end always opened as if I had not logged in as an admin in the other tab.
The issue was that I had the site opened in yet another Chrome window (not tab) as not-logged-in visitor.
As soon as I closed all the tabs and all the sessions and reopened the single Chrome window with two tabs (admin / front end) the admin bar appeared in the front end.
Beware of unclosed HTML tags above <?php wp_footer(); ?>. Unclosed tags in the source will have closing tags generated by the browser and can suck in the WordPress admin bar HTML.
...
<div class="hidden-by-css">
<span> You can't see this</span>
<?php wp_footer(); ?>
</body>
</html>
That will cause the HTML generated for the admin bar to get sucked into the .hidden-by-css DIV and your admin bar won't show up.
So make sure you close all your tags. :)
I wanna leave my solution since I tried literally every possible solution on the internet. The website has LiteSpeed and is behind a reverse proxy from Deflect.ca similar to cloudflare, it blocks and caches as well.
The problem is the default cache from Deflect is set on 10 minutes and that caused the problem. Setting it with lower settings and removing all admin caching from LiteCache solved everything.