pavlos1982
Forum Replies Created
-
Forum: Themes and Templates
In reply to: adding navigation to show the subpages multilevelthis is the original code:
[<div id=”menu”>
- <li class=”page_item page-item-2″>Home
- <li class=”page_item page-item-27″>About Us<li class=”page_item page-item-30″>Contact us<li class=”page_item page-item-88″>Sample Menu<li class=”page_item page-item-48″>weddings<li class=”page_item page-item-20″>Corporate
<li class=”page_item page-item-7″>We do<li class=”page_item page-item-6 current_page_item”>Gallery<li class=”page_item page-item-4″>Contact</div>]
this is the code in wordpress theme:
[<div id=”menu”>
- <?php echo preg_replace(‘@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i’,'<li$1><a$2><span>$3</span>’,wp_list_pages(‘echo=0&orderby=name&exlude=181&title_li=&depth=1’)); ?>
</div>]
it works but just dont show my subnavigation pages, parent pages
sorry the code would nt show up before so i had to repost it
Forum: Themes and Templates
In reply to: including a picture in page/postthanks all of you , i did try that <img src=”<?php bloginfo(‘template_directory’); ?>/images/bg.jpg” id=”background” alt=”” title =”” />
zero did nt know but what i got a plug in called exec-php which then allows you to put php code into your post or pages and that is working now ??
Forum: Themes and Templates
In reply to: including a picture in page/posti meant image not email
Forum: Themes and Templates
In reply to: Adding External Flash photo albumi tried everything and still giving me griefs lol but thank you anyway i will try and explain in detaills well ill copy the whole code , in a html page it works perfect this is the code for it
<html xmlns=”https://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>TiltViewer</title>
<script type=”text/javascript” src=”swfobject.js”></script>
<link href=”gallery.css” rel=”stylesheet” type=”text/css”>
</head>
<body>
<div id=”flashcontent”>
<div id=”flashcontent”>
<script type=”text/javascript”>
var fo = new SWFObject(“TiltViewer.swf”, “viewer”, “500px”, “500px”, “9.0.28”, “#000000”);// TILTVIEWER CONFIGURATION OPTIONS
// To use an option, uncomment it by removing the “//” at the start of the line
// For a description of config options, go to:
// https://www.airtightinteractive.com/projects/tiltviewer/config_options.html//FLICKR GALLERY OPTIONS
// To use images from Flickr, uncomment this block
//fo.addVariable(“useFlickr”, “true”);
//fo.addVariable(“user_id”, “48508968@N00”);
//fo.addVariable(“tags”, “jump,smile”);
//fo.addVariable(“tag_mode”, “all”);
//fo.addVariable(“showTakenByText”, “true”);// XML GALLERY OPTIONS
// To use local images defined in an XML document, use this block
fo.addVariable(“useFlickr”, “false”);
fo.addVariable(“xmlURL”, “gallery.xml”);
fo.addVariable(“maxJPGSize”,”640″);//GENERAL OPTIONS
fo.addVariable(“useReloadButton”, “false”);
fo.addVariable(“columns”, “3”);
fo.addVariable(“rows”, “3”);
//fo.addVariable(“showFlipButton”, “true”);
//fo.addVariable(“showLinkButton”, “true”);
//fo.addVariable(“linkLabel”, “View image info”);
//fo.addVariable(“frameColor”, “0xFF0000”);
//fo.addVariable(“backColor”, “0xDDDDDD”);
//fo.addVariable(“bkgndInnerColor”, “0xFF00FF”);
//fo.addVariable(“bkgndOuterColor”, “0x0000FF”);
//fo.addVariable(“langGoFull”, “Go Fullscreen”);
//fo.addVariable(“langExitFull”, “Exit Fullscreen”);
//fo.addVariable(“langAbout”, “About”);// END TILTVIEWER CONFIGURATION OPTIONS
fo.addParam(“allowFullScreen”,”true”);
fo.write(“flashcontent”);
</script> </div></div>
</body>
</html>my real issue is that body script is driving me up the wall , what ever url i used for SWFObject(“TiltViewer.swf” and fo.addVariable(“xmlURL”, “gallery.xml”);, even using blog info template url it does not work
im just hoping there is a way to rewrite this script so it can work in body tag pages on wordpress
Forum: Themes and Templates
In reply to: loading an image in a div using phpthat is exactly what i was looking for thank you very much, sorry about the explaination but this is what i was looking for the problem i was facing is with this code : “<div id=”image”><img id=”background” src=”backg/catering.jpg” alt=”” title=”” />”
i cant test the website offline , or when i have activate the theme in wordpress “backg/catering.jpg” just does nt work because im not using css to get the background or using a full url
so <div id=”image”>
<img src=”<?php bloginfo(‘template_url’); ?>/backg/catering.jpg” id=”background” alt=”” title =”” />
</div> definitely works , online and offlineagain thank you
Forum: Themes and Templates
In reply to: Preload image in a div background with css??this is the website i found which you suppose to be able to preload with just css :
perishablepress.combut im not sure wether its working or not
Forum: Themes and Templates
In reply to: Preload image in a div background with css??i want to use this technique with css but im not sure its working basically this is my header tag:
<div id=”header”>
<div id=”wrapper2″>
<ul class=”menu”>
<?php echo preg_replace(‘@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i’, ‘<li$1><a$2><span>$3</span>’, wp_list_pages(‘echo=0&orderby=name&exlude=181&title_li=&depth=1’)); ?></div></div>and i want to add a css to it so it preload a background image into this header tag , javascrip is good but they saying css is better because some people has javascript blocked on their browser so an issue there if i can get the css way to work then brilliant
Forum: Themes and Templates
In reply to: Preload image in a div background with css??i have already optimized the image has much has i can i think if i try to optimized it more i will loose the quality ?? any more ideas, i have heard something about using css for image preloading ?? know anything about that??
or is there any tool i could optimized the image without loosing quality?
Forum: Themes and Templates
In reply to: css navigation issuei manage to sort it out , sorry took a while to get back here been very busy , here is the link https://webdeveloper.byethost11.com/, before the css id for the nav and the div id was different and i think that was what making it display incorectly and the style was nt applied properly
Forum: Themes and Templates
In reply to: How to add different header image for every pagethank you alchymyth you a genius it works thank you very much
Forum: Themes and Templates
In reply to: How to add different header image for every pageim using this method
PHP
<div id=”header” <?php if(is_page(‘About’)) : ?>class=”aboutpageclass”<?php else : ?>class=”normalclass”<?php endif;?>>
Css
.aboutpageclass { background-image:someimage.jpg; }
.normalclass { background-image:anotherimage.jpg }but i can get only the aboutpage to work now i want to do the rest of the pages, like contact, home , gallery but im stuck anybody can help me out be great thanks
Forum: Themes and Templates
In reply to: Different header image on About Pagei have done this and it works but i want to add it to more pages how to i add another piece of php code for other pages from this code
<div id=”header” <?php if(is_page(‘About’)) : ?>class=”aboutpageclass”<?php else : ?>class=”normalclass”<?php endif;?>>
Then in your CSS apply style to the necessary classes, following the example above, something like….
Example..
.aboutpageclass { background-image:someimage.jpg; }
.normalclass { background-image:anotherimage.jpg }