How can I access to the css file where is the header's background image? background: url("http://xxx.es") no-repeat scroll center top / 1600px auto transparent; It's not in the style.css
How do I change the height of the header image (specified in the Header Media section) in the Twenty Seventeen Theme? Specifically I want to change it on the home page because here it fills up nearly the entire page. I want it to be much shorter. The way it appears on other pages such as the built-in About page has a good height so if I could mimic that on the home page I would be satisfied. Although knowing …
I am setting the header image in WordPress and when I click on the crop button, it shows me the following error: There has been an error cropping your image.
I've seen some posts about resizing the header image but haven't managed to get anything to work. I want to reduce the height of the header image on the homepage as it takes up about 50% of the window height (please see homepage.jpg) My other issue is with the header on the main pages, while it is a much better height, when the widow is resized the background image is cropped. I'd ideally like to have the logo separate to …
My theme contains a parallax header image. How can I change the URL of the header image so that it uses HTTPS? I want to do it manually. Currently the URL is: http://example.com/themes/abc/header.jpg I want to change it to: https://example.com/themes/abc/header.jpg Plugins are not helping me on this specific file (they are converting others). Chrome tells me the header is being loaded by jquery.js. I have no idea how jQuery is doing this. I believe editing functions.php can help, but how …
I'm editor in a blog, the template has an image in the header and I have removed it. Now there's the default image and I want to replace it but I can't contact the admin anymore. How can I achieve that?
I have created a section inside the admin menu, Where it is possible to upload the logo, How can I replace this uploaded image with wordpress logo(header_image())? //admin dashboard page <img alt="" src="<?php header_image() ?>"> <form action="<?php echo get_stylesheet_directory_uri() ?>/process_upload.php" method="post" enctype="multipart/form-data"> Your Logo: <input type="file" name="profilepicture" size="25" /> <input type="submit" name="submit" value="Submit" /> </form> //upload process code <?php require( dirname(__FILE__) . '/../../../wp-load.php' ); $theme_root = get_theme_root(); $wordpress_upload_dir = wp_upload_dir(); $i = 1; $profilepicture = $_FILES['profilepicture']; $new_file_path = $wordpress_upload_dir['path'] . …
We can add one site logo to site customize with add_theme_support( 'custom-logo' ); How can add another logo? Seems like the custom-logo theme support only allows to add one site logo and I need to a footer logo as well I know its possible to add this to a custom theme settings page but prefer to add this to the customize screen same place where theme logo is added.
Currently I'm trying to create a large header (jumbotron) on my website. The large header is loaded as inline css with the following code: <div class="fill" style="background-image:url('<?php echo img url ?>')"></div> I'm using the Multi-post-thumbnails plugin to create metaboxes to upload extra images. The image I'm trying to load is 'header-image'. The plugin normaly creates the complete etc which I don't need. Does anyone know how I can get the URL of the image?
There is this function: get_header_image() which can be called from within WordPress. Is there a way to access this externally, i.e. from the API? The use case might be a header for an external RSS feed, etc.
I have a question. I use the following code to output the image URLs of a wordpress post. The image URLs are related to the "attached images" of a wordpress post and not the ones that are actually used in the post. If you added an image to a post 2 years ago, but currently don't use the image anymore, the old unused Image Url will still be output via the code. I would like to avoid this. What i …
I'm trying to redesign my website, and I'm not sure how to make the banner (logo image) positioned on the center of the website. I tried editing the CSS of the theme to set it do display: flex and the justify-content: center and align-items: center however this didn't work. The theme I'm using is Lectura Lite. I tried searching on the web, however I couldn't find anything useful. Thanks in advance.
My goal is to create a custom API endpoint that I can call with an API call that changes the custom header image in Wordpress to another image (which would be passed along the API call, or maybe just switch to another media file in Wordpress, or similar). UPDATE: I have now found the set_theme_mod() function which seems to be what I'm looking for, but when I tried to implement it I couldn't quite get it to work. The API …
I have scoured the web for plugins and articles to help me solve something that seems pretty basic, but couldn't find anything. I want a way to create custom versions, particularly sizes, of an image on a per-image basis. I know I can register a specific size of image and WP will create it for every image that is uploaded. But what I want is to be able to create a scaled version of an existing image from the media …
I am currently setting up a Wordpress website based on the default Twenty Nineteen theme. The theme allows to use a header image. The default position is on the top left as can be seen in the following image (red square). However, I would like to change the position of the header image. I would like to display the header image at the top right, next to the navigation links as can be seen in the following picture (see position …
bear with me I'm very new with wordpress and have just been thrown into something where I'm a bit over my head. We have a site built with fusion builder using the Avada theme. Our headers use a banner image with a link that's supposed to link back to our home page (https://cohhio.org/), but instead links back to the dev subdomain for our homepage (http://dev.cohhio.org/), but for the life of me I can't find how to change this link. Example …
Having looked at Show TwentyEleven header image only on home page, Replace Home with image link inside custom header menu and more, I don't see what I am trying to do. We want to replace the header only on the home page, with a much taller image. FYI I am not the designer and we had an intern using a lot of plugins to modify sidebars and build pages, so that's not me LOL. I prefer code-based solutions, not plugins. …
I can get the image header with get_header_image() ex: wp eval "echo get_header_image();" But how can I change that ? I tried set_header_image(url) and Custom_Image_Header::set_header_image with no success.
I am using the Twenty Seventeen theme and am trying to control the behavior of the header image/media for different screen resolutions/sizes. The standard seems to be just cutting the picture and changing the proportions when changing to lower resolutions screen. Instead I would like it to "zoom", keeping the same proportions as for the full screen layout. This already seems to be the standard for the panel images. I played with a bunch of css settings, but just can't …
I currently have in my header.php: <?php $backgroundImg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'header-large' ); ?> <?php if ( has_post_thumbnail() ) { ?> <div id="wrapper-navbar" itemscope itemtype="http://schema.org/WebSite" style="background-image: url('<?php echo $backgroundImg[0]; ?>');"> <?php } else { ?> <div id="wrapper-navbar" itemscope itemtype="http://schema.org/WebSite"> <?php } ?> Which sets the background image if there is a featured image on the pages and posts. If there is none then there is a fall back where I have a default background image. My problem arises on the …