Not resolved

Logo Quality / Fixed Bar

Ultra Theme started by Command Oct 12, 2015 16 replies
Command Oct 12, 2015 · 5:04 pm #2544

Hi Andrew I have a few questions,

I am having an issue making the logo on my home page appear clearly. I have added a retina logo that shows up crystal clear on my mac, but the regular version appears blurry and pixelated. Can you please advise me on how to fix this problem?

Additionally, I am attempting to create a fixed slim photo banner for some pages on my site. I have created the banner and attempted to center the text atop the banner however I cannot get the banner to be fixed so it gets distorted when making the page larger/smaller or when viewed on a mobile phone. If you can help me with this issue it’d be greatly appreciated!

– Command

Andrew Misplon Puro Oct 12, 2015 · 7:32 pm #2546

Hi Command

I’m sure I can get these challenges sorted. Could you perhaps send your site link so I can take a look. Please let me know which page I can see the banner on. You can use the private reply checkbox below the comment field to keep your site URL private.

Thanks

Command Oct 12, 2015 · 7:36 pm #2549

This reply has been marked as private.

Andrew Misplon Puro Oct 12, 2015 · 7:49 pm #2550

Thanks.

A friendly reminder that all WordPress.org themes completely overwrite their own folder during theme updates. Any changes made via Appearance > Editor to the parent theme will be lost on theme update if an update is ever run.

Go to Appearance > Editor > style.css and search for:

.entry-header h1.entry-title,
.entry-header h1.page-title,
.page-header h1.entry-title,
.page-header h1.page-title {
  font-size: 1.78571em;
  line-height: 2em;
  margin: 0;
  text-align: center;
  margin-left: 4.5cm;
}

The following line has been added, please remove it for now:

margin-left: 4.5cm;

If you don’t have a Custom CSS plugin, try installing one called SiteOrigin CSS from Plugins > Add New. Once activated go to Appearance > Custom CSS and insert:

/* Content Heading */

.single .entry-header h1.entry-title, .page .site-content > .entry-header h1.entry-title, .blog .page-header h1.page-title, .search-results .page-header h1.page-title, .search-no-results .page-header h1.page-title, .error404 .page-header h1.page-title {
    width: 100%;
    text-align: center;
}

This should resolve the banner issue. I’ll come back to you on the logo shortly.

Andrew Misplon Puro Oct 12, 2015 · 7:53 pm #2551

I ran a quick diff comparison on your stylesheet. The above rule is the only one edited so after this we’ll be update safe.

Command Oct 12, 2015 · 8:03 pm #2554

This reply has been marked as private.

Command Oct 12, 2015 · 8:05 pm #2556

Thank you greatly! That version of the logo worked!

Andrew Misplon Puro Oct 12, 2015 · 8:33 pm #2558

Glad to hear that helped.

For the banner, go to Appearance > Editor > style.css, locate these two lines:

text-align: center;
margin-left: 4.5cm;

and remove them.

Command Oct 12, 2015 · 9:20 pm #2559

This reply has been marked as private.

Andrew Misplon Puro Oct 12, 2015 · 9:23 pm #2560

Thanks for your feedback. At Appearance > Editor > style.css. Try searching for:

/*--------------------------------------------------------------
13.6.3 - General Post and Page Header
--------------------------------------------------------------*/

Underneath that you’ll find:

.entry-header h1.entry-title,
.entry-header h1.page-title,
.page-header h1.entry-title,
.page-header h1.page-title {
  font-size: 1.78571em;
  line-height: 2em;
  margin: 0;
  text-align: center;
  margin-left: 4.5cm;
}

The two lines we need to remove are:

  text-align: center;
  margin-left: 4.5cm;

The left margin is the main issue.

(If at all possible, could we perhaps save “private reply” for passwords and URLS etc. That way the thread might be helpful to others. You’re a premium user so we could also move to email if you ever wanted. Thanks for your consideration).

Command Oct 12, 2015 · 9:32 pm #2561

Absolutely!

I checked that location and this is what is showing up for me.

/*————————————————————–
13.6.3 – General Post and Page Header
————————————————————–*/
.entry-header h1.entry-title,
.entry-header h1.page-title,
.page-header h1.entry-title,
.page-header h1.page-title {
font-size: 1.78571em;
line-height: 2em;
margin: 0;
text-align: center;
}

Andrew Misplon Puro Oct 12, 2015 · 9:49 pm #2562

Thanks 🙂

Apologies, that was a caching issue on my side. Thanks for double-checking.

We can now try the following in Custom CSS:

.single .entry-header, .page .site-content > .entry-header, .blog .page-header, .archive .page-header, .search-results .page-header, .search-no-results .page-header, .error404 .page-header {
    background-repeat: no-repeat !important;
    background-size: 100% !important;
    background-position: center center !important;
}

@media (max-width: 1280px) {
	.page .site-content > .entry-header {
		padding: 1em 0;
	}
}

Managing the padding for mobile gets tricky. See what you think. I tried to reduce it a bit, you could reduce it more. It’s the last value there. 1em.

Command Oct 12, 2015 · 10:20 pm #2563

That code worked perfectly for the desktop site the mobile however shows up as more of a black rectangle box with the image inside of it. I attempted to change the number in front of “em” which had little success in changing the appearance of the box.
Andrew you’ve been so helpful, it is greatly appreciated.

Andrew Misplon Puro Oct 12, 2015 · 10:27 pm #2564

Glad to hear we’re making progress. We can try add another media query like this:

@media (max-width: 480px) {
	.page .site-content > .entry-header {
		padding: 6px 0;
	}
}

OR we could drop the background image for mobile. If you wanted to that we’d say:

@media (max-width: 680px) {
	.single .entry-header, .page .site-content > .entry-header, .blog .page-header, .archive .page-header, .search-results .page-header, .search-no-results .page-header, .error404 .page-header {
		background-image: none !important;
	}	
}
Command Oct 12, 2015 · 11:10 pm #2565

So I opted for the first code and it appears that it somewhat worked. I am viewing the mobile site through an iPhone 6 Plus so that may have something to do with it however, on my screen the bar is correctly sized under the “contact” and “services” tab but not under the about tab.

17 posts