Joined: Jan 12, 2012 Age: 38 Posts: 2250 Last Visit: 21 Mar 2019 Location: Back of your mind!!! Rep: 6463.2 votes: 6 Thanks Given: 4 Received: 2
Posted: Mon Feb 05, 2018 9:40 am Post subject: Re: Header logo
What do you mean, "more than one logo"?
If your talking about having it randomly change on each page refresh, then there are several different ways, it really depends on your theme and how its set up and how you really want to go about it. You could do it with jquery, and CSS, or you can do it with PHP and CSS. Me personally, to make it easier on myself, I would just do PHP and an array. Then make the images and do it that way. But I can't say exactly how to do it because each theme is different and it really depends on your theme.
In the left blocks, you will see a "Theme Changer" block. Just select the BF4_Multi, and once you have that theme selected, look at the logo image and hit refresh a few times, you will see it change randomly. I have Test Image 1 through Test Image 5. If thats what your looking for, then the way i did that is by editing 2 files.
Open you public_html/themes/BF4_Multi/style/style.css and find
<div id="headerlogo" style="background: url("../images/header/'. $displayed_logo .'") no-repeat;"></div>
Save & Close
Now, what you want to do is upload all your logo images into the folder
Then, you will see in the edit above, a line that looks like this:
$rl = array('logo1.png', 'logo2.png', 'logo3.png', 'logo4.png', 'logo5.png');
In between each of the quotes, ('), you want to put in the name of the image and the file type. You really want all your images as .png images and keep them the same size as the default one, which is 968 x 200.
All times are UTC - 7 Hours [DST enabled] Goto page 1, 2Next
Page 1 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum