I am trying to edit the header of my website to use my logo in the header. In the header.php file under the "Display Logo Image or Site Title" code here is what I have after putting in the image link:
$options = get_option('zeefocus_options');
if ( isset($options['themeZee_general_logo']) and $options['themeZee_general_logo'] <> "" ) : ?>
<img class="logo-image" src="http://i.imgur.com/02WuoWa.png" alt="Auto-Platre" /></a>
I saved and uploaded the file, but the webpage is still the same. Do I need to edit anything in the Wordpress admin?
Without more info this question is kind of hard to answer but here are a few things to try:
Clear your cache if you have it enabled
Your theme might have a built in header option, in which case you can upload the image to directly through the theme settings
Related
In my wordpress site, let's say I have an image that is located in:
/wp-content/themes/root-theme/assets/img/image-1.png
If I want to access this image in a blog post, when using the html editor in Wordpress I have to type out:
<img src="/wp-content/themes/root-theme/assets/img/image-1.png" />
This generates a url of:
http://my-site.com/wp-content/themes/root-theme/assets/img/image-1.png"
This is a massive pain. I'd much rather be able to write:
<img src="/img/image-1.png" />
That is, I want to make it possible to access my assets folder from the root directory, so that the image above could be accessed via:
http://my-site.com/img/image-1.png
Is this possible to do or would it majorly screw up the rest of the site?
You'll have to use the media manager, it will write the full link out for you, no need to type anything. Just above the editor click "Add media", select your image, click insert into post and you're done.
Use bloginfo function to get full url of your theme :
<img src="<?php bloginfo('template_directory');?>/assets/img/image-1.png" />
Output: http://my-site.com/wp-content/themes/root-theme/assets/img/image-1.png
Reference
I've been looking for a way to make a custom direct access images on wp-content uploads folder since a year ago, but I still didn't found how to serve / display image in wp-content/uploads folder using custom script (maybe php)
Please take a look at my screensshot here : http://prntscr.com/30sdb8
you can see this wp-content/uploads are still have some additional code, and even this page source are hidden with an image (the same image)
is there anyone know how to do that on a worpdress website?
Thanks for answering my question
Updated
because of some unclearly information in my previous question here I try to explain as clear as I can.
In a default wordpress website if a user direct access an image from wp-content/uploads/ directory (for an example : www.domain.tld/wp-content/uploads/2014/04/image-name.jpg )
there will be only an image and a blank background, but in my screenshot example you can see that there are some additional code in header and footer.
my question is how to make modification like that in wordpress? so I can display a header and of footer on my wp-content/uploads/ Url pages
ps : the website I mean is lincah.com , you can go to google image, site:lincah.com then click on 1 image on the search result you'll be brought to the page I mean.
I hope thats clearly enough.
Thank you
What I could make out is you need a PHP script that could fetch all the images from uploads folder and display on the page.
<?php
$images_list = glob("wp-content/uploads/" . "*");
foreach($images_list as $image) {
echo '<img src="' . $image . '" /> <br />';
}
?>
I downloaded fresh yiinitializr archive (from here) unpacked it. After I configured db etc. I wanted to print a icon, just like it's mentioned at the yiistrap site:
<?php echo TbHtml::icon(TbHtml::ICON_GLASS); ?>
And it's invisible. There is a proper HTML code:
<i class="icon-glass"></i>
The bootstrap.min.js and bootstrap.min.css are also attached. Why it's still invisible?
Have you included the icon image files. Bootstrap uses the glyphicons from http://glyphicons.com/ you need to include the icons image files.
I have uploaded an image folder in my child theme on wordpress-images->homeimages->myimage.jpg. When i go to mywebsiteexample.com/images/homeimages/myimage.jpg, it returns that page is not available and as a result i cannot use relative path in img src to call the images.
you could do this way as like
mywebsiteexample.com/wp-content/themes/themefoldername/images/homeimages/myimage.jpg
For example
Use this
to get the current active theme directory
you can call something like to load the image
<img src="<?php echo bloginfo('template_url');?>/images/homeimages/myimage.jpg"/>
Hope it may help
For some reason, on my server, images do not display if they're remotely (or locally) embedded in an HTML page, but they do work when visited directly.
Embed code:
<img src="http://c.beastsmc.com/banners/creative.png"/>
Here's a fiddle showing the image not displaying: http://jsfiddle.net/gKHM7/
Here's the direct image, which works: http://c.beastsmc.com/banners/creative.png
The .htaccess file is empty.
Any ideas?
As jcansyi mentioned above (upvote him!), the problem was that AdBlocker blocked the image. The reason it was blocking it was the name of the folder (banners). AdBlockPlus blocks any URL with /banners/ in it.