d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Wordpress Help > Cant Find The File..
123Next
Add Reply New Topic New Poll
Member
Posts: 1,337
Joined: Feb 7 2011
Gold: 0.85
Oct 12 2014 10:02am
So I installed wordpress locally and it works fine! however I installed a theme and it looks great but I want to find the file on my computer where I can change the html of my "h1 area" (if you can call it that), BUT! I cant seem to find out where the file is located... there are so many freaking files...

I tried to play around with something called "firebug" but it doesnt look like it gives me the path to my h1 title text...

any ideas?
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Oct 12 2014 10:03am
its probably going to be style.css in the themes directory where ever that may be. You may want to look into using a child theme through. If you apply changes to the themes files, those will be lost when you update it.

This post was edited by SelfTaught on Oct 12 2014 10:03am
Member
Posts: 1,337
Joined: Feb 7 2011
Gold: 0.85
Oct 12 2014 10:05am
Quote (SelfTaught @ Oct 12 2014 05:03pm)
its probably going to be style.css in the themes directory where ever that may be. You may want to look into using a child theme through. If you apply changes to the themes files, those will be lost when you update it.

I been in the style.css but I cant change to what I want to change.. does that make sense? I need to get to the exact html as I can see through my firebug plugin, but I just cant find it in my files..


thank you so much for trying to help!!! im so lost right now.. been working on this for 3 hours now..
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Oct 12 2014 10:07am
Quote (iBecameLegend @ Oct 12 2014 08:05am)
I been in the style.css but I cant change to what I want to change.. does that make sense? I need to get to the exact html as I can see through my firebug plugin, but I just cant find it in my files..


thank you so much for trying to help!!! im so lost right now.. been working on this for 3 hours now..


are you on linux, ios, or windows? also, could you copy the html from firebug that you want to change and paste it here?
Member
Posts: 1,337
Joined: Feb 7 2011
Gold: 0.85
Oct 12 2014 10:16am
Im on a mac ;)

From firebug:
Code
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Fashion - Athletes - Music | Fashion – Athletes – Music</title>
<link href="http://gmpg.org/xfn/11" rel="profile">
<link href="http://localhost:8888/wordpress/xmlrpc.php" rel="pingback">
<link href="http://localhost:8888/wordpress/?feed=rss2" title="Fashion - Athletes - Music » Feed" type="application/rss+xml" rel="alternate">
<link href="http://localhost:8888/wordpress/?feed=comments-rss2" title="Fashion - Athletes - Music » Comments Feed" type="application/rss+xml" rel="alternate">
<link id="siteorigin-google-web-fonts-css" media="all" type="text/css" href="http://fonts.googleapis.com/css?family=Montserrat&ver=4.0" rel="stylesheet">
<link id="influence-style-css" media="all" type="text/css" href="http://localhost:8888/wordpress/wp-content/themes/influence/style.css?ver=4.0" rel="stylesheet">
<script src="http://localhost:8888/wordpress/wp-includes/js/jquery/jquery.js?ver=1.11.1" type="text/javascript">
<script src="http://localhost:8888/wordpress/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1" type="text/javascript">
<script src="http://localhost:8888/wordpress/wp-content/themes/influence/js/jquery.fitvids.min.js?ver=1.0" type="text/javascript">
<script src="http://localhost:8888/wordpress/wp-content/themes/influence/js/jquery.theme-main.min.js?ver=1.0.6" type="text/javascript">
<link href="http://localhost:8888/wordpress/xmlrpc.php?rsd" title="RSD" type="application/rsd+xml" rel="EditURI">
<link href="http://localhost:8888/wordpress/wp-includes/wlwmanifest.xml" type="application/wlwmanifest+xml" rel="wlwmanifest">
<meta content="WordPress 4.0" name="generator">
<meta content="width=device-width, initial-scale=1, user-scalable=no" name="viewport">
<style id="custom-background-css" type="text/css">
<style id="fit-vids-style">
</head>
<body class="home blog custom-background responsive menu-overlap">
<div id="page" class="hfeed site">
<header id="masthead" class="site-header has-shadow" role="banner">
<div class="container">
<div class="hgroup">
<h1 class="site-title">
<a rel="home" title="Hospital – Church – Music" href="http://localhost:8888/wordpress/"> [B]Hospital – Church – Music[/B] </a>
</h1>
</div>
<nav class="site-navigation main-navigation primary" role="navigation">
</div>
</header>
<div id="under-masthead-slider">
<div id="main" class="site-main">
<footer id="colophon" class="site-footer" role="contentinfo">
</div>
<div id="main-menu">
<link id="sow-slider-base-826c62ea08b4-css" media="all" type="text/css" href="http://localhost:8888/wordpress/wp-content/uploads/siteorigin-widgets/sow-slider-base-826c62ea08b4.css?ver=4.0" rel="stylesheet">
<link id="sow-slider-slider-css" media="all" type="text/css" href="http://localhost:8888/wordpress/wp-content/plugins/so-widgets-bundle/widgets/so-slider-widget/css/slider.css?ver=1.0.5" rel="stylesheet">
<script src="http://localhost:8888/wordpress/wp-content/plugins/so-widgets-bundle/widgets/so-slider-widget/js/jquery.cycle.min.js?ver=1.0.5" type="text/javascript">
<script src="http://localhost:8888/wordpress/wp-content/plugins/so-widgets-bundle/widgets/so-slider-widget/js/slider.min.js?ver=1.0.5" type="text/javascript">
</body>
</html>



Now I want the "Church - Hospital - Music" to each be linked to a category. Example: If you click on "Music" you will be linked to all the posts that have been posted under the category "music"
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Oct 12 2014 10:21am
Quote (iBecameLegend @ Oct 12 2014 08:16am)
Im on a mac ;)

From firebug:
Code
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Fashion - Athletes - Music | Fashion – Athletes – Music</title>
<link href="http://gmpg.org/xfn/11" rel="profile">
<link href="http://localhost:8888/wordpress/xmlrpc.php" rel="pingback">
<link href="http://localhost:8888/wordpress/?feed=rss2" title="Fashion - Athletes - Music » Feed" type="application/rss+xml" rel="alternate">
<link href="http://localhost:8888/wordpress/?feed=comments-rss2" title="Fashion - Athletes - Music » Comments Feed" type="application/rss+xml" rel="alternate">
<link id="siteorigin-google-web-fonts-css" media="all" type="text/css" href="http://fonts.googleapis.com/css?family=Montserrat&ver=4.0" rel="stylesheet">
<link id="influence-style-css" media="all" type="text/css" href="http://localhost:8888/wordpress/wp-content/themes/influence/style.css?ver=4.0" rel="stylesheet">
<script src="http://localhost:8888/wordpress/wp-includes/js/jquery/jquery.js?ver=1.11.1" type="text/javascript">
<script src="http://localhost:8888/wordpress/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1" type="text/javascript">
<script src="http://localhost:8888/wordpress/wp-content/themes/influence/js/jquery.fitvids.min.js?ver=1.0" type="text/javascript">
<script src="http://localhost:8888/wordpress/wp-content/themes/influence/js/jquery.theme-main.min.js?ver=1.0.6" type="text/javascript">
<link href="http://localhost:8888/wordpress/xmlrpc.php?rsd" title="RSD" type="application/rsd+xml" rel="EditURI">
<link href="http://localhost:8888/wordpress/wp-includes/wlwmanifest.xml" type="application/wlwmanifest+xml" rel="wlwmanifest">
<meta content="WordPress 4.0" name="generator">
<meta content="width=device-width, initial-scale=1, user-scalable=no" name="viewport">
<style id="custom-background-css" type="text/css">
<style id="fit-vids-style">
</head>
<body class="home blog custom-background responsive menu-overlap">
<div id="page" class="hfeed site">
<header id="masthead" class="site-header has-shadow" role="banner">
<div class="container">
<div class="hgroup">
<h1 class="site-title">
<a rel="home" title="Hospital – Church – Music" href="http://localhost:8888/wordpress/"> [B]Hospital – Church – Music[/B] </a>
</h1>
</div>
<nav class="site-navigation main-navigation primary" role="navigation">
</div>
</header>
<div id="under-masthead-slider">
<div id="main" class="site-main">
<footer id="colophon" class="site-footer" role="contentinfo">
</div>
<div id="main-menu">
<link id="sow-slider-base-826c62ea08b4-css" media="all" type="text/css" href="http://localhost:8888/wordpress/wp-content/uploads/siteorigin-widgets/sow-slider-base-826c62ea08b4.css?ver=4.0" rel="stylesheet">
<link id="sow-slider-slider-css" media="all" type="text/css" href="http://localhost:8888/wordpress/wp-content/plugins/so-widgets-bundle/widgets/so-slider-widget/css/slider.css?ver=1.0.5" rel="stylesheet">
<script src="http://localhost:8888/wordpress/wp-content/plugins/so-widgets-bundle/widgets/so-slider-widget/js/jquery.cycle.min.js?ver=1.0.5" type="text/javascript">
<script src="http://localhost:8888/wordpress/wp-content/plugins/so-widgets-bundle/widgets/so-slider-widget/js/slider.min.js?ver=1.0.5" type="text/javascript">
</body>
</html>



Now I want the "Church - Hospital - Music" to each be linked to a category.  Example: If you click on "Music" you will be linked to all the posts that have been posted under the category "music"


I usually just do a grep in terminal when im trying to hunt down which file has the html i want to change.

so you'd just do something like

Code
grep -RH 'class="site-title"' ./path_to/theme_dir


and that'll show you the path to the file containing the match

then once you've found the file, you'll need to call the wp api to create links to specific categories / tags

http://codex.wordpress.org/Function_Reference/get_category_link

This post was edited by SelfTaught on Oct 12 2014 10:22am
Member
Posts: 1,337
Joined: Feb 7 2011
Gold: 0.85
Oct 12 2014 10:25am
Never really tried to work with the terminal before, however I just copied yours example but it says no files found..

Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Oct 12 2014 10:26am
Quote (iBecameLegend @ Oct 12 2014 08:25am)
Never really tried to work with the terminal before, however I just copied yours example but it says no files found..


you need to change the ./path_to/theme_dir in the command.

do you know the path to your wordpress installation?
Member
Posts: 1,337
Joined: Feb 7 2011
Gold: 0.85
Oct 12 2014 10:28am

my "wordpress folder" is located in the htdocs..

so wouldnt it be like: /Applications/MAMP/htdocs

? im such a noobie to these things..
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Oct 12 2014 10:32am
Quote (iBecameLegend @ Oct 12 2014 08:28am)
my "wordpress folder" is located in the htdocs..

so wouldnt it be like: /Applications/MAMP/htdocs

? im such a noobie to these things..


Probably

try this

Code
find / -type d -name "themes" -exec grep -R 'class="site-title"' '{}' \;


Go Back To Programming & Development Topic List
123Next
Add Reply New Topic New Poll